"How-to: Print Your Jupyter Notebook"

Gloria Jul 16, 2026

Ever wondered how to share your Jupyter Notebook's findings or code with others, or perhaps make a presentation out of your data analysis project? Printing a Jupyter Notebook is the way to go. It allows you to generate a static document that contains all your code, visualizations, and output in a clear, organized manner. Here's a step-by-step guide on how to print a Jupyter Notebook effectively.

28 Jupyter Notebook Tips, Tricks, and Shortcuts - Dataquest
28 Jupyter Notebook Tips, Tricks, and Shortcuts - Dataquest

Before we dive into the procedures, ensure that you have an up-to-date version of Jupyter Notebook installed. If not, you can install it via pip:

Notebook to pdf online
Notebook to pdf online

``` pip install jupyter ```

Now, let's explore the two primary methods to print a Jupyter Notebook: using the command line and via the user interface.

Method 1: Command Line

The 8 surprising ways how to use Jupyter Notebook
The 8 surprising ways how to use Jupyter Notebook

Using the command line provides more control and flexibility. Here's how to do it:

① Converting a Jupyter Notebook to PDF

Data Science Hacks | Tips | Tricks- Ipython Interactive Shell
Data Science Hacks | Tips | Tricks- Ipython Interactive Shell

To convert your Jupyter Notebook to a PDF, you can use the following command:

``` jupyter nbconvert --to pdf your_notebook.ipynb ```

The above command will generate a PDF named 'your_notebook.pdf' in the same directory as your Jupyter Notebook. You can customize the output filename by specifying it as an argument:

``` jupyter nbconvert --to pdf your_notebook.ipynb --output filename ```

② Converting a Jupyter Notebook to HTML

Jupyter Notebook Keyboard Shortcuts
Jupyter Notebook Keyboard Shortcuts

If you prefer an HTML output, you can achieve this with:

``` jupyter nbconvert --to html your_notebook.ipynb ```

This will create an HTML file with the same name as your Jupyter Notebook in the current directory.

Method 2: User Interface

Working with Jupyter Notebooks in Positron: From Exploration to Production
Working with Jupyter Notebooks in Positron: From Exploration to Production

Another method to print a Jupyter Notebook is via the user interface. This method is more straightforward but offers less customization:

① Printing Directly from the Notebook

a woman holding a notebook with the words no borax, no glue on it
a woman holding a notebook with the words no borax, no glue on it
some journal page ideas ♡
some journal page ideas ♡
Me from A to Z ✨✨
Me from A to Z ✨✨
Threadless Spiral Notebook Template
Threadless Spiral Notebook Template
VSCO sticker notebook!! 🦋🦋
VSCO sticker notebook!! 🦋🦋
Notebook Decoration DIY Guide
Notebook Decoration DIY Guide
cute journal
cute journal
Using Remote Kernels with Jupyter Notebook Server
Using Remote Kernels with Jupyter Notebook Server
How To Print Out Bullet Journal Pages To Fit The Size Of Your Journal
How To Print Out Bullet Journal Pages To Fit The Size Of Your Journal
How to make your journal look cool with scrapbook and junk journal ideas
How to make your journal look cool with scrapbook and junk journal ideas

You can print your Jupyter Notebook directly from the user interface. First, ensure that your notebook is active and displaying the output you need. Then, press Ctrl+P (Windows/Linux) or Command+P (Mac) to open the print dialog box. Here, you can choose your printer, the range of cells or sections you want to print, and configure other settings as needed.

② Using the 'Save & Export Notebook' Function

Jupyter Notebook also provides an 'Export Notebook' button in the 'File' menu. Clicking on it presents various exporting options, including 'PDF via LaTeX' and 'HTML'. Choose the desired format, configure the settings in the dialog box that appears, and click 'Export' to save your Notebook as a PDF or HTML file.

Both command line and user interface methods have their advantages. The command line offers more flexibility and control, while the user interface is more accessible. Choose the method that best suits your needs and preference. Don't forget to test the printed or exported files to ensure they accurately represent your work.

Printing a Jupyter Notebook is an excellent practice to enhance shareability and presentability of your projects. It offers a fantastic way to communicate your findings and insights effectively with your peers, colleagues, or audience. Happy printing!