skillfed

jupyter-sphinx

Jupyter Sphinx Extensions

jupyter-sphinx v0.5.3 110.7K downloads/30d#12,447 on PyPI194
License unclear Copyright (c) 2015-2016, Brian E. Granger and Jake Vanderplas Copyright (c) 2016-2019, Project Jupyter Contributors All rights reserved. Redistribution and use in source and binary forms, with or… (full text in the JSON record) Active released

What it is and what it does

Jupyter Sphinx Extensions is a Sphinx plugin that executes Python code blocks embedded in your documentation at build time and captures their output—text, plots, tables, and interactive Jupyter widgets—inserting it into the final HTML or other output formats. It bridges the gap between static documentation and live, runnable examples by letting you write code directly in your .rst files and have it execute during the doc build, keeping examples in sync with your actual code.

The package depends on the full Jupyter ecosystem (ipykernel, ipython, ipywidgets, nbconvert, nbformat) plus Sphinx itself, so it's designed for projects that already use Jupyter and want to embed executable examples in their Sphinx docs. It's maintained by the Jupyter project and remains actively developed.

Use it for:

  • Embed live Python examples in API documentation that execute and display output at doc build time.
  • Create tutorial documentation with executable code blocks and rendered plots or tables.
  • Include interactive Jupyter widgets in your Sphinx docs for exploratory examples.
  • Ensure code examples in documentation stay synchronized with actual behavior by running them during builds.
  • Build scientific or data-science project docs with embedded computational results and visualizations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Jupyter Sphinx Extensions runs code embedded in Sphinx documentation and embeds its output—including images and interactive widgets—directly into the generated documentation.

Yes, if you maintain Sphinx documentation for a Jupyter-based project and want executable examples in your docs. The package is actively maintained, has low install friction, and solves a real problem—keeping code examples current and showing actual output. The unclear license treatment is a minor flag; verify it with the project if compliance is critical, but the raw text appears to be standard BSD.

Install

jupyter-sphinx on PyPI

pip

pip install jupyter-sphinx

uv

uv add jupyter-sphinx

poetry

poetry add jupyter-sphinx

Installing jupyter-sphinx

Before you install

Low friction installation with a pure-Python wheel. Active maintenance as of 2026-08-03 with 194 repository stars. Depends on six common Jupyter ecosystem packages (ipykernel, ipython, ipywidgets, nbconvert, nbformat, sphinx), all widely used and well-maintained.

License in practice

License treatment is unclear in the metadata. The raw text is a revised BSD license (permissive), but the SPDX field is null. Verify the exact license classification with the project before relying on it for compliance-sensitive work.

Quickstart

pip install jupyter_sphinx

# In conf.py (Sphinx configuration):
extensions = ['jupyter_sphinx']

# In .rst file:
.. jupyter-execute::

    print('Hello from Jupyter Sphinx')

Requires Python >=3.8 and a working Sphinx documentation setup with Jupyter kernel available at build time.

Verify before relying

  • Whether the 'unclear' license treatment reflects a genuine ambiguity or a metadata gap that the project has since clarified.
  • Support status for Python versions beyond 3.8 (current support statement is 'supports_current', but exact upper bound is unknown).
  • Specific syntax and directive names for embedding executable code blocks in documentation.

Package facts

License Copyright (c) 2015-2016, Brian E. Granger and Jake Vanderplas Copyright (c) 2016-2019, Project Jupyter Contributors All rights reserved. Redistribution and use in source and binary forms, with or… (full text in the JSON record) (unclear)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 6 — ipykernel, ipython, ipywidgets, nbconvert, nbformat, sphinx
Maintenance actively maintained — 960 days since the last release
Last repo commit
First released
Downloads 110,724/month — #12,447 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: jupyter_sphinx-0.5.3-py3-none-any.whl

Tags

sphinx code execution in docsjupyter notebook in sphinxexecutable code blocks documentationsphinx interactive widgetslive code examples sphinxjupyter output in sphinx docs
jupyter-integrationdocumentation-generationexecutable-examples

More Sphinx packages

docstring-parser

Parses Python docstrings in ReST, Google,…

permissive · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

sphinxcontrib-qthelp

A Sphinx extension that converts documentation…

permissive · top 1,000 on PyPI

sphinx-thebe

Adds interactive, executable code blocks to…

unclear · top 15,000 on PyPI

sphinxcontrib-blockdiag

A Sphinx extension that embeds block diagrams…

permissive · top 15,000 on PyPI

nbsphinx

nbsphinx is a Sphinx extension that parses…

permissive · top 5,000 on PyPI

sphinxcontrib-programoutput

A Sphinx extension that executes arbitrary…

permissive · top 15,000 on PyPI

myst-nb

Sphinx extension that parses and converts…

unclear · top 5,000 on PyPI

sphinx-copybutton

A Sphinx extension that adds a copy button to…

permissive · top 5,000 on PyPI

nbsphinx-link

A Sphinx extension that lets you include…

permissive · top 15,000 on PyPI

jupyterlab-widgets

Enables Jupyter/IPython widgets to render and…

permissive · top 1,000 on PyPI

sphinx_tippy

Adds interactive tooltips to Sphinx…

permissive · top 15,000 on PyPI

rpy2

rpy2 embeds R within Python, allowing you to…

copyleft · top 15,000 on PyPI