A sphinx extension for including notebook files outside sphinx source root
Project description
A sphinx extension for including notebook files from outside the sphinx source root.
Normally, Sphinx will only allow you to add files that are situated inside the source directory, but you might want to include files from another directory, for example a central ‘examples’ folder. For RST files these can be linked with include directives inside another RST file. For notebooks, there’s nbsphinx-link!
Usage
Install the package.
Add ‘nbsphinx_link’ to extensions in Sphinx config ‘conf.py’
Add a file with the ‘.nblink’ extension where you want them included.
The .nblink file is a JSON file with the following structure:
{
"path": "relative/path/to/notebook"
}
Optionally the “extra-media” key can be added, if your notebook includes any media, i.e. images. The value needs to be an array of strings, which are paths to the media files or directories to include. Note that this is not needed if the images are added as attachments to markdown cells.
Further keys might be added in the future.
Note that the documentation of this project might serve as a further resource!
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 nbsphinx_link-1.4.0.tar.gz.
File metadata
- Download URL: nbsphinx_link-1.4.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34aa4bce82cc60cde54110057219b422bb6b2f812f8cee210f10f24a6f37ecd
|
|
| MD5 |
ec3e6eb6b23a5a2576b7493d22fea04e
|
|
| BLAKE2b-256 |
90fe0d9beeb843847d141076c93011333cde78c1fe2a1f8005eb4f98649fc696
|
File details
Details for the file nbsphinx_link-1.4.0-py3-none-any.whl.
File metadata
- Download URL: nbsphinx_link-1.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51d80de54fd0d7b71ad96e8c7c085a7d11d4f93e515132e6c2a0722191c085a7
|
|
| MD5 |
60adb9100ee0502ba99f5153e73744c5
|
|
| BLAKE2b-256 |
8caab8f5726ba9aafca1542b46700d663e4deba9793ce953648e92a49e324b64
|