Run python code in sphinx
Project description
sphinx-runpython implements sphinx extensions including one to execute code and add the output to the documentation. The library is released on pypi/sphinx-runpython and its documentation is published at sphinx-runpython.
epkg
It implements a list of recurring urls in documentation.
conf.py
epkg_dictionary = {'title': 'url' }
rst
:epkg:`title` -> `title <url>`_
runpython
Executes code in the documentation and adds it to documentation.
.. runpython::
:showcode:
print("python code")
<<<
print("python code")
>>>
python code
List of directives
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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_runpython-0.4.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_runpython-0.4.0-py3-none-any.whl
- Upload date:
- Size: 87.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa5769e4d3ab9148989ea85925d1e3551cfea02224234f1ba6174cc52956dfa8
|
|
| MD5 |
6d40ea34b13806924fc4bfd88bc50611
|
|
| BLAKE2b-256 |
4186fcfe8d57a437151cebaff8d6d881bac13a8e788e21af771acf26596940aa
|