Convert a Jupyter notebook to PDF
Updated August 29, 2026
The most predictable way to make a PDF is to convert the notebook locally, where you can inspect the output and keep private data off a third-party service.
For a browser-based PDF generated with Chromium, Jupyter supports:
jupyter nbconvert --to webpdf notebook.ipynb
This may require the Chromium dependency described by your installed nbconvert version. A broadly available fallback is HTML:
jupyter nbconvert --to html notebook.ipynb
Open the HTML in a browser and use its print dialog to save a PDF. The LaTeX route, --to pdf, requires a working TeX installation and may fail on notebooks with unsupported output. Execute the notebook first if the PDF should contain current results, and check images, page breaks, and hidden outputs.
If you upload a notebook to an online converter, remove credentials and confidential data first and read its retention policy. A file extension change is not a conversion.
Sources
related.
Ruslan Osipov
About the author