Free online PDF tools. All 31 tools are free to use. No signup. No watermarks.

Open PDF Editor

PDFVerge guides

How to Convert a Jupyter Notebook to PDF

JupyterLab export, nbconvert, printing from the browser and a no-install online option, with the errors you are most likely to hit and how to hide the code.

Updated November 24, 2026 ยท PDFVerge

There are four common ways to turn a Jupyter notebook (.ipynb) into a PDF: export it from JupyterLab, run jupyter nbconvert, print the notebook from your browser, or upload it to an online converter such as IPYNB to PDF. The built-in options need extra software that often is not installed, which is why many people see an error the first time. Each method is below, with when to use it.

1. Export from JupyterLab or Jupyter Notebook

In JupyterLab choose File > Save and Export Notebook As > PDF. In the classic Notebook interface the same option is under File > Download as.

This route uses LaTeX to typeset the PDF, so it only works if a TeX distribution such as TeX Live, MiKTeX or MacTeX is installed. Without one you will see an error that xelatex was not found. The result looks like a typeset paper, which is good for math-heavy work, but wide tables and long code lines can run off the page.

2. nbconvert from the command line

The same converter can be run directly, which is handy for batches and automation:

  • jupyter nbconvert --to pdf analysis.ipynb uses LaTeX, like the menu option.
  • jupyter nbconvert --to webpdf analysis.ipynb renders the notebook in a headless browser instead, which keeps it looking like it does on screen and avoids LaTeX. It needs the extra install pip install "nbconvert[webpdf]" and, the first time, a browser download.
  • Add --no-input to either command to hide all code cells and keep only the output, which is what most non-technical readers want.

3. Print from the browser

With the notebook open in JupyterLab, VS Code, Google Colab or the classic interface, use the browser's Print command and choose Save as PDF. In Colab this is File > Print. It needs no setup, but pages often break in the middle of charts and outputs, and the interface's sidebars can end up in the PDF. Exporting to HTML first (File > Save and Export Notebook As > HTML) and printing that file gives a cleaner result.

4. Online, with no installation

  1. Open IPYNB to PDF and select your notebook.

  2. Choose whether to show the code or only the output.

  3. Click Convert to PDF and download it.

It lays out markdown, LaTeX math, syntax-colored code, printed output, tables and saved charts the way they were saved in the notebook. It does not run the notebook, so run all cells and save before converting if you want fresh output.

Which one should you use?

  • A report for people who do not code: hide the code, using --no-input or the output-only option online.
  • A math-heavy paper: the LaTeX export, if TeX is installed.
  • Dozens of notebooks: nbconvert in a script.
  • One notebook, right now, on a machine you cannot install things on: the online converter or browser printing.

Common problems

"xelatex not found" or "nbconvert failed: PDF creating failed"

LaTeX is missing. Install a TeX distribution, use --to webpdf instead, or convert online.

Charts are missing from the PDF

The notebook was saved without output, or the charts are interactive widgets that only render while the kernel runs. Run all cells, save, and convert again; interactive plots may need to be saved as static images.

Long lines and wide tables are cut off

Wrap long lines of code, limit how many DataFrame columns are displayed, or use landscape pages.

Email support@pdfverge.com

A better way to get it done.

Your next document task is a few clicks away.

Explore all PDF tools