sphinxnotebookgist
sphinxnotebookgist is a Sphinx extension that replaces source-only Jupyter notebooks with executed notebook files during the Sphinx build, after first verifying that the cell sources still match.
What It Does
- Scans
.ipynbfiles under the Sphinx source directory. - Looks for
metadata.sphinxnotebookgist.url. - Resolves GitHub Gist page URLs to the raw notebook file.
- Compares local and fetched notebook cell sources.
- Replaces the local notebook in place when the sources match.
This allows repositories to keep clean notebooks without outputs while still rendering executed outputs in tools such as nbsphinx or myst-nb.
Example Metadata
{
"metadata": {
"sphinxnotebookgist": {
"url": "https://gist.github.com/<user>/<gist_id>"
}
}
}
Supported URLs include GitHub Gist page URLs, direct http(s) raw notebook URLs, and local file:// URLs for testing.
Development
python -m pip install -e '.[dev]'
pytest
Run a focused suite with pytest tests/test_unit.py or pytest tests/test_integration.py.
Contributing
Contributor workflow, coding style, and test expectations are documented in AGENTS.md.
Further Reading
Background and motivation for this extension, including a comparison with nbsphinx, are in this post:
https://www.zonca.dev/posts/2026-03-10-sphinxnotebookgist-executed-notebooks
Metadata
Release files for sphinxnotebookgist 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sphinxnotebookgist-0.1.0.tar.gz | 9.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinxnotebookgist-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / sphinxnotebookgist-0.1.0.tar.gz
| Download URL | sphinxnotebookgist-0.1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60a8bec4572dd09d12ca8fb3d6e10d1667cf28c377954b857093f6d70c39be29
|
|
BLAKE2b-256 checksum How to use checksums |
b47956822e48eebd395f9c3ae4b5193cab9a79ad73e68aaca73965fccf72fa87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / sphinxnotebookgist-0.1.0-py3-none-any.whl
| Download URL | sphinxnotebookgist-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92e91016f47c40d28d396d10a7b4124b3209b022b4c3f3e94c6afa5bb3c1ef35
|
|
BLAKE2b-256 checksum How to use checksums |
9d392b9c4b056c744e71440206504df3e00baa9b267406d3f3c2ce34c8a184af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for sphinxnotebookgist 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.