If you have LaTeX installed you can download as PDF directly from Jupyter notebook with File -> Download as -> PDF via LaTeX (.pdf). Otherwise follow these two steps.

  1. For HTML output, you should now use Jupyter in place of IPython and select File -> Download as -> HTML (.html) or run the following command:

     jupyter nbconvert --to html notebook.ipynb  
    

    This will convert the Jupyter document file notebook.ipynb into the html output format.

    Google Colaboratory is Google's free Jupyter notebook environment that requires no setup and runs entirely in the cloud. If you are using Google Colab the commands are the same, but Google Colab only lets you download .ipynb or .py formats.

  2. Convert the html file notebook.html into a pdf file called notebook.pdf. In Windows, macOS (brew install wkhtmltodf) or Linux, install wkhtmltopdf. wkhtmltopdf is a command line utility to convert html to pdf using WebKit. You can download wkhtmltopdf from the linked webpage, or in many Linux distros it can be found in their repositories.

     wkhtmltopdf notebook.html notebook.pdf   
    

Original (now almost obsolete) revision: Convert the IPython notebook file to html.

ipython nbconvert --to html notebook.ipynb

Answer from karel on Stack Overflow
🌐
Vertopal
vertopal.com › en › convert › ipynb-to-pdf
Online IPYNB (Jupyter Notebook) to PDF Converter - Vertopal
Adjust IPYNB (Jupyter Notebook) to PDF settings with tools, then press Convert. Allow the system to complete the PDF conversion, then download your file.
Top answer
1 of 16
154

If you have LaTeX installed you can download as PDF directly from Jupyter notebook with File -> Download as -> PDF via LaTeX (.pdf). Otherwise follow these two steps.

  1. For HTML output, you should now use Jupyter in place of IPython and select File -> Download as -> HTML (.html) or run the following command:

     jupyter nbconvert --to html notebook.ipynb  
    

    This will convert the Jupyter document file notebook.ipynb into the html output format.

    Google Colaboratory is Google's free Jupyter notebook environment that requires no setup and runs entirely in the cloud. If you are using Google Colab the commands are the same, but Google Colab only lets you download .ipynb or .py formats.

  2. Convert the html file notebook.html into a pdf file called notebook.pdf. In Windows, macOS (brew install wkhtmltodf) or Linux, install wkhtmltopdf. wkhtmltopdf is a command line utility to convert html to pdf using WebKit. You can download wkhtmltopdf from the linked webpage, or in many Linux distros it can be found in their repositories.

     wkhtmltopdf notebook.html notebook.pdf   
    

Original (now almost obsolete) revision: Convert the IPython notebook file to html.

ipython nbconvert --to html notebook.ipynb

2 of 16
37

Also pass the --execute flag to generate the output cells

jupyter nbconvert --execute --to html notebook.ipynb
jupyter nbconvert --execute --to pdf notebook.ipynb

The best practice is to keep the output out of the notebook for version control, see: Using IPython notebooks under version control

But then, if you don't pass --execute, the output won't be present in the HTML, see also: How to run an .ipynb Jupyter Notebook from terminal?

For an HTML fragment without header: How to export an IPython notebook to HTML for a blog post?

Tested in Jupyter 4.4.0.

Discussions

Convert ipynb to pdf in Jupyter - Stack Overflow
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... More on stackoverflow.com
🌐 stackoverflow.com
Converting Jupyter Notebooks to PDF: Exploring Your Options
Does the ploomber tool just run nbconvert? What about things like headers that are also links, images, emojis, and building out table of contents? Can we add a branded header and footer to our documents to make them look professional? The Jupyter to PDF process drives me insane. The web PDF seems to keep it the closest to original, but you have to print to like 11x17 sized sheets in landscape for large tables which looks a bit ridiculous. I definitely think there's a need for a better tool there. More on reddit.com
🌐 r/IPython
7
4
September 24, 2024
Ploomber Convert: A free online tool to convert Jupyter notebooks to PDF
Cool. Formatting between Notebooks and their HTML version equivalent to say the least. It’s not good. One other native solution I’ve found on macOS is that safari’s print to/save as pdf does get the 1:1 formatting and I’ve successfully used it in a hand-in. Page breaks are non existing which is a little awkward but can be handled. Hope to get opportunity soon to try this out. More on reddit.com
🌐 r/IPython
8
28
August 9, 2022
Downloading a PDF from Jupyter
You can just print to PDF. More on reddit.com
🌐 r/WGU_MSDA
20
6
August 16, 2023
🌐
Runcell
runcell.dev › tool › jupyter-to-pdf
Ipynb (Jupyter Notebook) to PDF Converter
Convert .ipynb (Jupyter Notebook files) to .pdf in your browser—free, private first. Converter with print preview, plus nbconvert tutorial for professional PDF output.
🌐
Analytics Vidhya
analyticsvidhya.com › home › 5 methods to convert .ipynb files to pdf
5 Methods to Convert .ipynb Files to PDF- Analytics Vidhya
April 7, 2025 - Open the notebook, go to the “File” menu, select “Download as,” and then choose “PDF via LaTeX.” Alternatively, you can use the command line tool nbconvert with the command jupyter nbconvert –to pdf your_notebook.ipynb.
🌐
nbconvert
nbconvert.readthedocs.io
nbconvert: Convert Notebooks to other formats — nbconvert 7.17.1 documentation
Primarily, the nbconvert tool allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more. nbconvert can also add productivity to your workflow when used to execute notebooks programmatically. If used as a Python library (import nbconvert), nbconvert adds notebook conversion within a project. For example, nbconvert is used to implement the “Download as” feature within the Jupyter Notebook web application.
🌐
Built In
builtin.com › articles › jupyter-notebook-to-pdf
How to Convert Jupyter Notebook to PDF | Built In
In your notebook, click the file menu bar, select “Download as,” then select “PDF via HTML.” · Screenshot by author · Just like that, your notebook is a PDF file. If you’d rather use a command prompt to convert the notebook, you ...
Find elsewhere
🌐
Ploomber
convert.ploomber.io
Notebook Converter by Ploomber
Convert your Jupyter Notebooks (IPYNB) into professional PDF and LaTeX documents. Our free online converter ensures your code, visualizations, and markdown are beautifully preserved.
🌐
Online Convert Free
onlineconvertfree.com › 🔵 file converter › 🔵 documents › 🔵 convert to ipynb › 🔵 pdf converter › 🔵 ipynb to pdf
Convert your IPYNB to PDF Online for Free - OnlineConvertFree
You can select the ipynb file you wish to convert from your computer, Google Drive, Dropbox or just drag and drop it onto the page. ... Choose pdf or any other of the 200+ supported formats that you wish to convert to.
🌐
TheOnlineConverter
theonlineconverter.com › convert-ipynb-to-pdf
Free IPYNB to PDF Converter - Online Converter
Convert IPYNB files to PDF online. Preserve code, markdown, and output. No Jupyter or LaTeX required. Fast, free, and secure tool!
🌐
Medium
medium.com › @prathik.codes › how-to-convert-jupyter-notebook-to-pdf-the-roundabout-but-easier-way-080900904752
How to convert Jupyter Notebook to PDF : The roundabout but easier(?) way. | by Prathik C | Medium
February 4, 2025 - Based on my research into this, what I learnt was that one could do this directly from the Jupyter Notebook interface (File>>Download As>>PDF). Or there is the alternative of CLI : jupyter nbconvert --to pdf your_notebook.ipynb ·
🌐
Code-format
code-format.com › tool › converter_ipynbtopdf
Convert IPYNB to PDF Online – Export Jupyter Notebooks to PDF
Upload your .ipynb file, click Convert, and download your PDF — completely free, no account, no LaTeX needed. It works as a fully online Jupyter Notebook to PDF converter that runs in your browser.
🌐
Hyunyoung2
hyunyoung2.github.io › 2018 › 09 › 20 › How_To_Convert_ipynb_To_PDF
How to convert ipynb file to PDF
jupyter nbconvert –to pdf –template what_you_want_to_use file_name.ipynb · you could convert ipynb to a lots of format in Jupyter on web browser, File - Download as - PDF via LaTex or etc.
🌐
Trymito
trymito.io › blog › how-to-convert-ipynb-to-pdf
How to Convert ipynb to PDF | Mito
Replace YOUR_NOTEBOOK_NAME.ipynb with your actual file name. To create a PDF without the code cells, add the --no-input option: jupyter nbconvert --to webpdf --allow-chromium-download --no-input YOUR_NOTEBOOK_NAME.ipynb
🌐
MLJAR
mljar.com › blog › jupyter-notebook-pdf
The 4 ways to export Jupyter Notebook as PDF
May 28, 2022 - It can be accessed by clicking File -> Download as -> PDF via LaTeX (or PDF via HTML - not visible in the screenshot). This approach requires you to install some additional packages.
🌐
UPDF
updf.com › home › effortless ipynb to pdf conversion: a comprehensive guide
Convert IPYNB to PDF Easily & Efficiently |UPDF
July 23, 2025 - Here are the necessary steps to ... systems, you'll need nbconvert and PyPDF2, which can be installed via pip: pip install nbconvert PyPDF2...
🌐
DEV Community
dev.to › mycko22 › 5-ways-to-convert-ipynb-to-pdf-for-data-scientists-and-students-419f
5 Ways to Convert IPYNB to PDF for Data Scientists and Students - DEV Community
May 10, 2025 - Install pandoc and a LaTeX distribution (e.g., TeX Live). Navigate to your notebook’s directory in the terminal. Run:jupyter nbconvert --to pdf your_notebook.ipynb
🌐
Saturn Cloud
saturncloud.io › blog › how-to-convert-ipynb-to-pdf-in-jupyter-notebook
How to Convert ipynb to PDF in Jupyter Notebook | Saturn Cloud Blog
December 7, 2023 - In this tutorial, we’ll cover the steps to convert your Jupyter Notebook to PDF format using different methods. The first method we’ll cover is using nbconvert, a command-line tool that converts Jupyter Notebooks to various formats, including PDF.
🌐
Ploomber
ploomber.io › blog › jupyter-notebook-convert
Converting Jupyter notebooks to PDF
September 12, 2024 - # install nbconvert pip install nbconvert # you must install pandoc and xetex before using it! # convert to pdf using webpdf jupyter nbconvert mynotebook.ipynb --to pdf