Disable interactive plots for PDF.
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.
This commit is contained in:
10
pdf/run_notebooks.bat
Normal file
10
pdf/run_notebooks.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user