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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0c122321471b55756407ae17d7ff8838a6e0a4cd5bd143dc81dc2f0c5c26923 |
|
MD5 | 58328f482f9450c0250902accb564a75 |
|
BLAKE2b-256 | 6f13ad994c132f7933bf504ca6b08b9f5a30556211f86a1c815ca87b1dc8887a |
Close
Hashes for sphinx_toggleprompt-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b789a1a55b89d4392d113972d0293f18238633e3f66da50388eef1e63de793c8 |
|
MD5 | 06e0b3be7f81bb7177ed16195adc4250 |
|
BLAKE2b-256 | 26fa120cac790ff32a071b4f826e38b8080bc8d247b0b648874da0ee959998e8 |