Execute code and let Jupyter format the output
Project description
sphinx-exec-jupyter
This Sphinx extension allows you to execute Jupyter notebooks and include their output in your documentation.
Installation
Install or depend on
sphinx-exec-jupyter @ git+https://github.com/flying-sheep/sphinx-exec-jupyter.git,
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] @ git+https://github.com/flying-sheep/sphinx-exec-jupyter.git
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_exec_jupyter-0.1.1.tar.gz.
File metadata
- Download URL: sphinx_exec_jupyter-0.1.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69497632292f78eb2c9afa88edf1bb4f33aaae1b20a501a0c30c0686ea327bac
|
|
| MD5 |
a63ddce9970154851f32bc02c94f0635
|
|
| BLAKE2b-256 |
131774bf863c31fbae0e2514644f608d208b377942bbb0d91bf5fd6d2a8d5f92
|
Provenance
The following attestation bundles were made for sphinx_exec_jupyter-0.1.1.tar.gz:
Publisher:
release.yml on flying-sheep/sphinx-exec-jupyter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_exec_jupyter-0.1.1.tar.gz -
Subject digest:
69497632292f78eb2c9afa88edf1bb4f33aaae1b20a501a0c30c0686ea327bac - Sigstore transparency entry: 1941061683
- Sigstore integration time:
-
Permalink:
flying-sheep/sphinx-exec-jupyter@b5dbe7fa2d22d6d5ec53bd08a1c913b43521a3e8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/flying-sheep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5dbe7fa2d22d6d5ec53bd08a1c913b43521a3e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphinx_exec_jupyter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sphinx_exec_jupyter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90864ab7009755114e71690d45abf7d16ab197fd2795841757bff0e5e6605a5b
|
|
| MD5 |
cbfd7421c46c5be9aafb30bd5c32deaa
|
|
| BLAKE2b-256 |
622b7636e4546a05b840ed1a1dd114dd283e1954419eabc3120576b2352e3633
|
Provenance
The following attestation bundles were made for sphinx_exec_jupyter-0.1.1-py3-none-any.whl:
Publisher:
release.yml on flying-sheep/sphinx-exec-jupyter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_exec_jupyter-0.1.1-py3-none-any.whl -
Subject digest:
90864ab7009755114e71690d45abf7d16ab197fd2795841757bff0e5e6605a5b - Sigstore transparency entry: 1941061785
- Sigstore integration time:
-
Permalink:
flying-sheep/sphinx-exec-jupyter@b5dbe7fa2d22d6d5ec53bd08a1c913b43521a3e8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/flying-sheep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5dbe7fa2d22d6d5ec53bd08a1c913b43521a3e8 -
Trigger Event:
release
-
Statement type: