Convert ipynb to pdf in Jupyter

Christa picture Christa · Apr 28, 2016 · Viewed 68.1k times · Source

I am new to ipython notebook, and I would like to convert my ipynb to pdf. But I get the following error when I try to Download as PDF via LaTex.

nbconvert failed: pdflatex not found on PATH

There is no documentation anywhere how to add pdflatex to my PATH. I use windows. Thank you!

Answer

Francio Rodrigues picture Francio Rodrigues · Nov 24, 2017

A simple and surprisingly good solution is to print the notebook to pdf through the browser with ctrl+p. Just make sure your plots and figures are not on interactive mode otherwise they will not be displayed (set them to %matplotlib inline).

Exporting jupyter notebooks through latex is quite troublesome and takes a lot of tinkering to get something remotely close to publish ready. When I absolutely need publication quality I do it on a latex editor, but this tutorial goes in great length about doing it on jupyter.

A few useful tips to get better results: