Fixed PDF generation re %matplotlib magic

Fixed the scripts that comment out the matplotlib magic.
It was commenting out all of the magics - the first one, and
ones in markdown cells. It should only comment out the ones
in code cells, and leave the first one.
This commit is contained in:
Roger Labbe
2017-01-18 12:23:06 -08:00
parent 91e9e08377
commit c97186c8b4
4 changed files with 29 additions and 14 deletions

View File

@@ -1,10 +1,10 @@
mkdir tmp
REM copy ..\*.ipynb .\tmp
REM copy ..\*.py .\tmp
REM cp -r ..\code\ .\tmp\code\
copy ..\*.ipynb .\tmp
copy ..\*.py .\tmp
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"
forfiles /m *.ipynb /c "cmd /c ipython ..\rm_notebook.py @file"
forfiles /m *.ipynb /c "cmd /c jupyter nbconvert --to notebook --execute @file --output @file"