nbconvert 7.16.6


pip install nbconvert

  Latest version

Released: Jan 28, 2025

Project Links

Meta
Author: Jupyter Development Team
Requires Python: >=3.8

Classifiers

Intended Audience
  • Developers
  • Science/Research
  • System Administrators

License
  • OSI Approved :: BSD License

Programming Language
  • Python
  • Python :: 3

nbconvert

Jupyter Notebook Conversion

Build Status Documentation Status

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

About the Jupyter Development Team

The Jupyter Development Team is the set of all contributors to the Jupyter project. This includes all of the Jupyter subprojects.

The core team that coordinates development on GitHub can be found here: https://github.com/jupyter/.

Our Copyright Policy

Jupyter uses a shared copyright model. Each contributor maintains copyright over their contributions to Jupyter. But, it is important to note that these contributions are typically only changes to the repositories. Thus, the Jupyter source code, in its entirety is not the copyright of any single person or institution. Instead, it is the collective copyright of the entire Jupyter Development Team. If individual contributors want to maintain a record of what changes/contributions they have specific copyright on, they should indicate their copyright in the commit message of the change, when they commit the change to one of the Jupyter repositories.

With this in mind, the following banner should be used in any source code file to indicate the copyright and license terms:

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
7.16.6 Jan 28, 2025
7.16.5 Jan 02, 2025
7.16.4 Apr 29, 2024
7.16.3 Mar 21, 2024
7.16.2 Mar 04, 2024
7.16.1 Feb 19, 2024
7.16.0 Feb 07, 2024
7.15.0 Feb 06, 2024
7.14.2 Jan 16, 2024
7.14.1 Jan 11, 2024
7.14.0 Jan 01, 2024
7.13.1 Dec 21, 2023
7.13.0 Dec 18, 2023
7.12.0 Dec 04, 2023
7.11.0 Nov 06, 2023
7.10.0 Oct 30, 2023
7.9.2 Oct 05, 2023
7.9.1 Oct 04, 2023
7.9.0 Oct 04, 2023
7.8.0 Aug 29, 2023
7.7.4 Aug 16, 2023
7.7.3 Jul 25, 2023
7.7.2 Jul 19, 2023
7.7.1 Jul 17, 2023
7.7.0 Jul 17, 2023
7.6.0 Jun 19, 2023
7.5.0 Jun 13, 2023
7.4.0 May 08, 2023
7.3.1 Apr 10, 2023
7.3.0 Apr 03, 2023
7.2.10 Mar 14, 2023
7.2.9 Jan 24, 2023
7.2.8 Jan 16, 2023
7.2.7 Dec 19, 2022
7.2.6 Dec 05, 2022
7.2.5 Nov 14, 2022
7.2.4 Nov 09, 2022
7.2.3 Oct 27, 2022
7.2.2 Oct 19, 2022
7.2.1 Oct 06, 2022
7.2.0 Oct 06, 2022
7.1.0 Oct 03, 2022
7.0.0 Aug 22, 2022
7.0.0rc3 Jul 14, 2022
7.0.0rc2 Jun 15, 2022
7.0.0rc1 May 16, 2022
7.0.0rc0 May 09, 2022
6.5.4 Sep 26, 2022
6.5.3 Aug 11, 2022
6.5.2 Aug 10, 2022
6.5.1 Aug 09, 2022
6.5.0 Apr 11, 2022
6.4.5 Mar 28, 2022
6.4.4 Mar 11, 2022
6.4.3 Mar 11, 2022
6.4.2 Feb 09, 2022
6.4.1 Jan 26, 2022
6.4.0 Jan 03, 2022
6.3.0 Nov 12, 2021
6.3.0b0 Nov 07, 2021
6.2.0 Sep 25, 2021
6.2.0rc2 Sep 17, 2021
6.2.0rc1 Sep 15, 2021
6.2.0rc0 Sep 14, 2021
6.1.1b0 Sep 11, 2021
6.1.0 Jun 22, 2021
6.1.0rc0 Jun 08, 2021
6.0.7 Oct 02, 2020
6.0.6 Sep 23, 2020
6.0.5 Sep 21, 2020
6.0.4 Sep 20, 2020
6.0.3 Sep 16, 2020
6.0.2 Sep 13, 2020
6.0.1 Sep 10, 2020
6.0.0 Sep 10, 2020
6.0.0rc0 Sep 07, 2020
6.0.0b7 Aug 24, 2020
6.0.0a6 Aug 18, 2020
6.0.0a5 Jul 29, 2020
6.0.0a4 Jul 07, 2020
6.0.0a3 May 27, 2020
6.0.0a2 May 26, 2020
6.0.0a1 Apr 03, 2020
6.0.0a0 Nov 24, 2019
5.6.1 Oct 25, 2019
5.6.0 Aug 09, 2019
5.5.0 Apr 25, 2019
5.4.1 Feb 09, 2019
5.4.1.dev0 Feb 08, 2019
5.4.0 Sep 06, 2018
5.3.1 Sep 05, 2017
5.3.0 Aug 31, 2017
5.2.1 May 24, 2017
5.1.1 Jan 21, 2017
5.1.0 Jan 21, 2017
5.0.0 Dec 15, 2016
5.0.0b1 Oct 20, 2016
4.3.0 Dec 14, 2016
4.2.0 Apr 08, 2016
4.1.0 Oct 30, 2015
4.0.0 Jul 12, 2015

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
beautifulsoup4
bleach[css] (!=5.0.0)
defusedxml
importlib-metadata (>=3.6)
jinja2 (>=3.0)
jupyter-core (>=4.7)
jupyterlab-pygments
markupsafe (>=2.0)
mistune (<4,>=2.0.3)
nbclient (>=0.5.0)
nbformat (>=5.7)
packaging
pandocfilters (>=1.4.1)
pygments (>=2.4.1)
traitlets (>=5.1)