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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f47bc93ca94990f7b4682517967387a0d64deebcd8589c1af5407f25cd5c6c |
|
MD5 | 79bbf375c6e8268c0f167b374416e883 |
|
BLAKE2b-256 | 32574a1f0c6047661777f95b28b50a199965ff793c6de1cedd66973e3c5e4404 |
Close
Hashes for sphinx_toggleprompt-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c269db36eab0cd00a572f8453b2b9ca36030ea0f79a8f762c20903ab19ffbc |
|
MD5 | f9ceb71ef0836862278a7fd83f9c6f1a |
|
BLAKE2b-256 | fb43a817472d25cb2011f10eae375ba5386e58fd5c2bf364cf06e83d65c04ea6 |