Skip to main content

Execute code and let Jupyter format the output

Project description

sphinx-exec-jupyter

PyPI Documentation Status Test Status Coverage Status

This Sphinx extension allows you to execute Jupyter notebooks and include their output in your documentation.

Installation

Install or depend on sphinx-exec-jupyter, optionally with the holoviews extra (see below). Then enable this extension in your conf.py:

extensions = [
    "sphinx_exec_jupyter",
]

Directives

exec-jupyter

Executes a Jupyter notebook cell and includes its output:

..  exec-jupyter::

    import numpy as np
    np.random.rand(4)

holoviews

Enable by installing the holoviews extra by depending on sphinx-exec-jupyter[holoviews]

Embeds a HoloViews plot:

..  holoviews::
    :backends: bokeh,matplotlib

    hv.Curve([1, 2, 3, 2, 1])

The default for backends is defined by a Sphinx conf.py setting: holoviews_backends = ['bokeh']

For detailed documentation, visit Read the Docs.

Project details


Download files

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

Source Distribution

sphinx_exec_jupyter-0.2.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

sphinx_exec_jupyter-0.2.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_exec_jupyter-0.2.2.tar.gz.

File metadata

  • Download URL: sphinx_exec_jupyter-0.2.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sphinx_exec_jupyter-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d7f8609808dac295b05b116e0ed3f43af6ac53a1877b25c930e388999b5f1bdd
MD5 0d950841aa642bc8945c9d3b01eb5134
BLAKE2b-256 a693f6d834333278eec49006fcc607ec5d5ab502bfc4f380ad1eae93f20bde81

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_exec_jupyter-0.2.2.tar.gz:

Publisher: release.yml on flying-sheep/sphinx-exec-jupyter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_exec_jupyter-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_exec_jupyter-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b19e7a781a4970158d6a4f320e6bc16f1d6a401297cea7a0f9d4d31864d2993a
MD5 fd45d348ee262dffdf2ca50173c710b7
BLAKE2b-256 927077d4f6c772351772a1ef69972533c03be18182f39730e6b082599f543b44

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_exec_jupyter-0.2.2-py3-none-any.whl:

Publisher: release.yml on flying-sheep/sphinx-exec-jupyter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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