Add a python prompt toggle to each code cell.
Project description
sphinx-toggleprompt
Sphinx-toggleprompt
adds a button to Python code blocks to
toggle >>>
prompts and remove output lines. It's copied
from the official Python docs theme.
See the documentation.
Installation and Usage
You can install sphinx-toggleprompt
with pip
:
pip install sphinx-toggleprompt
In your conf.py
configuration file, add sphinx_toggleprompt
to your extensions list.
extensions = [
...
'sphinx_toggleprompt',
...
]
Usage with sphinx-copybutton
sphinx-toggleprompt
works well with sphinx-copybutton
- see
the documentation.
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
Built Distribution
Close
Hashes for sphinx-toggleprompt-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1906c84e6c7e0c688647ba3fc0b2683d9d1b08edda910d30e80ce1893f42ac30 |
|
MD5 | 393f9d9dfed50e8d0b32d221a56a988f |
|
BLAKE2b-256 | 9d74d19c2a46a5bb575f253e8f017386543b4c34a1a19e5cca5ef525ddd82d15 |
Close
Hashes for sphinx_toggleprompt-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2494e6303b1519ec48099eada329c5a0bf069883844698f0d7bc90b3bdf262 |
|
MD5 | 82f46bdc2bd38ecc04b0597805e7325f |
|
BLAKE2b-256 | 4478a98a919c1687f3635dffb916579636a0409370b2f860b3921876acad945f |