spatialaudio/nbsphinx

📒 Sphinx source parser for Jupyter notebooks

Python

472

905 commits

updated Oct 6, 2026

See the code

README

Jupyter Notebook Tools for Sphinx
=================================

``nbsphinx`` is a Sphinx_ extension that provides a source parser for
``*.ipynb`` files.
Custom Sphinx directives are used to show `Jupyter Notebook`_ code cells (and of
course their results) in both HTML and LaTeX output.
Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be
automatically executed during the Sphinx build process.

Quick Start:
    #. Install ``nbsphinx``

    #. Edit your ``conf.py`` and add ``'nbsphinx'`` to ``extensions``.

    #. Edit your ``index.rst`` and add the names of your ``*.ipynb`` files
       to the ``toctree``.

    #. Run Sphinx!

Online documentation (and example of use):
    https://nbsphinx.readthedocs.io/

Source code repository (and issue tracker):
    https://github.com/spatialaudio/nbsphinx/

License:
    MIT -- see the file ``LICENSE`` for details.

.. _Sphinx: https://www.sphinx-doc.org/
.. _Jupyter Notebook: https://jupyter.org/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

jupyter-notebook
sphinx-doc
sphinx-extension

spatialaudio/nbsphinx

📒 Sphinx source parser for Jupyter notebooks

Python

472

905 commits

updated Oct 6, 2026

See the code

README

Jupyter Notebook Tools for Sphinx
=================================

``nbsphinx`` is a Sphinx_ extension that provides a source parser for
``*.ipynb`` files.
Custom Sphinx directives are used to show `Jupyter Notebook`_ code cells (and of
course their results) in both HTML and LaTeX output.
Un-evaluated notebooks -- i.e. notebooks without stored output cells -- will be
automatically executed during the Sphinx build process.

Quick Start:
    #. Install ``nbsphinx``

    #. Edit your ``conf.py`` and add ``'nbsphinx'`` to ``extensions``.

    #. Edit your ``index.rst`` and add the names of your ``*.ipynb`` files
       to the ``toctree``.

    #. Run Sphinx!

Online documentation (and example of use):
    https://nbsphinx.readthedocs.io/

Source code repository (and issue tracker):
    https://github.com/spatialaudio/nbsphinx/

License:
    MIT -- see the file ``LICENSE`` for details.

.. _Sphinx: https://www.sphinx-doc.org/
.. _Jupyter Notebook: https://jupyter.org/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

jupyter-notebook
sphinx-doc
sphinx-extension

Project health

Overall

3.9/10

Maintained

6/10

Code review

1/10
OpenSSF Scorecard

Latest release

0.9.8 · Nov 28, 2025

Releases this year

1

Significant stargazers

Adam J. Stewart

383 followers · starred Mar 2023

manoj kumar

427 followers · starred Jul 2017

Sergey B Kirpichev

80 followers · starred Mar 2018

François Magimel

37 followers · starred Feb 2024