Skip to main content

Converting Jupyter Notebooks

Project description

Jupyter Notebook Conversion

Google Group 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 Juptyer 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 .

Resources

Project details


Release history Release notifications | RSS feed

This version

4.2.0

Download files

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

Source Distributions

nbconvert-4.2.0.zip (515.5 kB view details)

Uploaded Source

nbconvert-4.2.0.tar.gz (428.7 kB view details)

Uploaded Source

Built Distribution

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

nbconvert-4.2.0-py2.py3-none-any.whl (319.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nbconvert-4.2.0.zip.

File metadata

  • Download URL: nbconvert-4.2.0.zip
  • Upload date:
  • Size: 515.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nbconvert-4.2.0.zip
Algorithm Hash digest
SHA256 c4c5c7033732d0334ed3b41618af9ea6b71274a026093db69bf6750eb92f0d31
MD5 f41b2392df5953f8358aee93c96410a9
BLAKE2b-256 5c1fa6a3478cfa4524bc7313c03872f19622fc157415572288ab771cca15671e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nbconvert-4.2.0.tar.gz
  • Upload date:
  • Size: 428.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nbconvert-4.2.0.tar.gz
Algorithm Hash digest
SHA256 55946d7522741294fcdd50799bd1777d16673ce721fecca0610cdb86749863c6
MD5 710e356c4effcfddd29a3c10f1d8c3e6
BLAKE2b-256 5ba9c4c7eac03b347e01b1591eaf1fbf0bb353eee3707180410d1fec1e782a2c

See more details on using hashes here.

File details

Details for the file nbconvert-4.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nbconvert-4.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fde887f769d8a727f3496999aa388b07355220b5a7c0479840f41b0c9f0be77f
MD5 77943cc6a82ea34bd9cd0f8795844799
BLAKE2b-256 55767989c6958ac939324ccc1589cfed0bb1f5cd984e604a24a8ea525b97b7c2

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