Skip to main content

Converting Jupyter Notebooks

Project description

nbconvert

Jupyter Notebook Conversion

Build Status Documentation Status codecov.io

The nbconvert tool, jupyter nbconvert, converts notebooks to various other formats via Jinja templates. The nbconvert tool allows you to convert an .ipynb notebook file into various static formats including:

  • HTML
  • LaTeX
  • PDF
  • Reveal JS
  • Markdown (md)
  • ReStructured Text (rst)
  • executable script

Usage

From the command line, use nbconvert to convert a Jupyter notebook (input) to a a different format (output). The basic command structure is:

$ jupyter nbconvert --to <output format> <input notebook>

where <output format> is the desired output format and <input notebook> is the filename of the Jupyter notebook.

Example: Convert a notebook to HTML

Convert Jupyter notebook file, mynotebook.ipynb, to HTML using:

$ jupyter nbconvert --to html mynotebook.ipynb

This command creates an HTML output file named mynotebook.html.

Dev Install

Check if pandoc is installed (pandoc --version); if needed, install:

sudo apt-get install pandoc

Or

brew install pandoc

Install nbconvert for development using:

git clone https://github.com/jupyter/nbconvert.git
cd nbconvert
pip install -e .

Running the tests after a dev install above:

pip install nbconvert[test]
py.test --pyargs nbconvert

Documentation

Technical Support

  • Issues and Bug Reports: A place to report bugs or regressions found for nbconvert
  • Community Technical Support and Discussion - Discourse: A place for installation, configuration, and troubleshooting assistannce by the Jupyter community. As a non-profit project and maintainers who are primarily volunteers, we encourage you to ask questions and share your knowledge on Discourse.

Jupyter Resources

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbconvert-7.2.9.tar.gz (870.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbconvert-7.2.9-py3-none-any.whl (274.9 kB view details)

Uploaded Python 3

File details

Details for the file nbconvert-7.2.9.tar.gz.

File metadata

  • Download URL: nbconvert-7.2.9.tar.gz
  • Upload date:
  • Size: 870.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nbconvert-7.2.9.tar.gz
Algorithm Hash digest
SHA256 a42c3ac137c64f70cbe4d763111bf358641ea53b37a01a5c202ed86374af5234
MD5 d1fffa513fdd406baa8031686a59a313
BLAKE2b-256 be6d3f909f6a31dadb19829523f9a676d5d623d613bf21a45143bc00be0fad67

See more details on using hashes here.

File details

Details for the file nbconvert-7.2.9-py3-none-any.whl.

File metadata

  • Download URL: nbconvert-7.2.9-py3-none-any.whl
  • Upload date:
  • Size: 274.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nbconvert-7.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 495638c5e06005f4a5ce828d8a81d28e34f95c20f4384d5d7a22254b443836e7
MD5 a34f65e010abd0a3ccb4d58b2c8ab2ba
BLAKE2b-256 14b137823f6d0f5ef0b8e53521b360c2ec5ef589bc317666aaf2bd509dd41716

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page