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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e47418504f168c59a25a7a5a9dc95d486e9d4b5aa52b5156aaea1597b85fec82 |
|
MD5 | bfb96bc8c6c72885019e62675b59b187 |
|
BLAKE2b-256 | ef6f6bf6c4579c47779c39f4b930258e320fe15d139193e0ba1b27eff8209339 |
Close
Hashes for sphinx_toggleprompt-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e8562b00d6dabce420a4fdc1405838995ed3b2d5dcc0f0a21bc508743f3e3b |
|
MD5 | 2c364c81fb0b227177b15f9d5610abda |
|
BLAKE2b-256 | 19687774511be9652d856c865c7bcd9335cf1a72cd1def7911389ab3d4ad3d72 |