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.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb5925a53dcf242d1c6c839653775e3dc9fbecf985d997913b4eea8e185f888 |
|
MD5 | cdc0aaa5247189fb97983baba129cfb6 |
|
BLAKE2b-256 | 846fcc95d9be9039ad875677914684f73918106871ac538c76563d4d223d270f |
Close
Hashes for sphinx_toggleprompt-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a666e760af3330550eb6a37a3edaab9892b7c68124dfb28e63cc94905f6b62 |
|
MD5 | 54b4bca4dd1b2b330dbb5fda85354689 |
|
BLAKE2b-256 | 8588df0bacd82ad05e9ea5d8b781688af7a5a8e9723e50b9c4c84a3105a17866 |