Issue
I am attempting to simply export an IPython notebook to a PDF. I cannot get past a syntax error that makes no sense to me.
ipython nbconvert "TestBook.ipynb" --to=latex --post=PDF
File "<ipython-input-45-98f03ab096ad>", line 1
ipython nbconvert "TestBook.ipynb" --to=latex --post=PDF
^
SyntaxError: invalid syntax
I'm new to python and IPython, but I'm at a complete loss here. Any ideas?
Solution
Looks like you are trying to run this in the python shell
>>> ipython nbconvert "TestBook.ipynb" --to=latex --post=PDF
File "<stdin>", line 1
ipython nbconvert "TestBook.ipynb" --to=latex --post=PDF
^
SyntaxError: invalid syntax
>>>
Exit from the shell, and run it from the command line instead.
Answered By - karthikr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.