How to convert Jupyter/IPython notebooks to LaTex?

J-S picture J-S · Sep 14, 2015 · Viewed 17.6k times · Source

How can I export Jupyter notebooks to LaTeX? I can convert to PDF through LaTeX using the inbuilt menus but I'm unsure how to step in at the intermediate step and extract the actual LaTeX file.

Answer

J-S picture J-S · Sep 14, 2015

You have to do this from the command line rather than the web interface with the following command:

jupyter nbconvert /path/to/mynotebook.ipynb --to latex