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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f4f015da3d8d45218830ef6df3b7b7daf0db535b6e7bfeda989fab61731d75 |
|
MD5 | 52b21bd0e09cced3b1ebef404962cc9b |
|
BLAKE2b-256 | 78fdb87645dd5be2bc4f82aebb02e14b46eadbf95d82a6ba308d5f147a18c7aa |
Close
Hashes for sphinx_toggleprompt-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278e7bac781fb25f63c34229e4a60cd7ce60013509b6874da9f8eaf34bafcae5 |
|
MD5 | 213bb8554d76f196f0458564276d713e |
|
BLAKE2b-256 | 802d465ef3c24449085a3bfafb158fe43920b72d0bcbabbc78489806167a432e |