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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e1c121243a5b6404a1572b7e744e19cebc840f19efa99589f4b2ebe80cca7a0 |
|
MD5 | 9f471476f15cd3efdf4204f9dedeb48e |
|
BLAKE2b-256 | bb855745d1470ef4ca85a144c8682d9e9beb5649b4a236c3515ff2c3e1988fae |
Close
Hashes for sphinx_toggleprompt-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b32ea405fa0cfd5c0b4eaed1c6ed0b49db5d377082c328f76cb59ac2a58ec8d |
|
MD5 | e2c26b7c34b2f48be8712ffbeee1630d |
|
BLAKE2b-256 | 901d01c3cf31896fba849d5a1ddadc3776de8e1979708941f037077c6984e775 |