J-S
J-S

Reputation: 1023

How to convert Jupyter/IPython notebooks to LaTex?

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.

Upvotes: 24

Views: 46123

Answers (2)

Anaconda Navigator provides JupyterLab. Use this to open jupyter notebook.

Under File menu you can find an item "Export Notebook As...".

This provides format such as Asciidoc, HTML, latex, pdf, Markdown, etc. You can choose your desired format.

Upvotes: 4

J-S
J-S

Reputation: 1023

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

Upvotes: 33

Related Questions