8463014958
nbconvert cannot output interactive plots to PDF. I wrote code to remove all of the %matplotlib notebook magic, rerun the notebooks, and then create the PDF.
11 lines
267 B
Batchfile
11 lines
267 B
Batchfile
mkdir tmp
|
|
REM copy ..\*.ipynb .\tmp
|
|
REM copy ..\*.py .\tmp
|
|
REM cp -r ..\code\ .\tmp\code\
|
|
|
|
cd tmp
|
|
|
|
REM forfiles /m *.ipynb /c "cmd /c ipython ..\rm_notebook.py @file"
|
|
REM forfiles /m *.ipynb /c "cmd /c jupyter nbconvert --to notebook --execute @file --output @file"
|
|
|