Converting notebooks

The standard tool for converting notebooks to other formats is the nbconvert utility. It is built-in to your Jupyter installation. You can access the tool directly in the user interface for your notebook. If you open a notebook, select the Jupyter File menu item, and you will see several options for Download as:

Converting notebooks

The choices are as follows:

Format type

File extension

Notebook

.ipynb

JavaScript

.js

HTML

.html

Markdown

.md

Restructured text

.rst

PDF

.pdf

For these examples, if we take a notebook from a previous chapter, the Jupyter Notebook looks like this:

Notebook format

The notebook format (IPYNB) ...

Get Learning Jupyter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.