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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx-runpython-0.2.0.tar.gz
(65.3 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_runpython-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55ccf96e3596973216a0ad00bda615625215e614d8ea72444c6d53ea38c8d4e |
|
MD5 | 1edd77db46d6507f06ca073fa85816c7 |
|
BLAKE2b-256 | 375736705e82e651a1e27ced56d6e022ffa2a84c043a855b897f87f3dbb999e3 |