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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd16faeb7eefd744dd094adb044d703c0424a7bfd7841a133e3d6ffe1bb218c3 |
|
MD5 | 5bf6a950a70cc37cb351e630106af42f |
|
BLAKE2b-256 | 8f0d60f189637ffe3b4b492e3167a70c983fa17889e4addd5933265684bc3d33 |
Close
Hashes for sphinx_toggleprompt-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a9768b99a0bde65d9b890e7688a503b56f07b347b622f91e03cb7f942baf4c5 |
|
MD5 | 32d2dc4d248d946818f872ca33afb9a3 |
|
BLAKE2b-256 | 7cae8d62aa8bf034246597df6d18d2a86ae10320eba5a0018e983fd004f18fa9 |