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
File details
Details for the file sphinx-toggleprompt-0.5.2.tar.gz
.
File metadata
- Download URL: sphinx-toggleprompt-0.5.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb5925a53dcf242d1c6c839653775e3dc9fbecf985d997913b4eea8e185f888 |
|
MD5 | cdc0aaa5247189fb97983baba129cfb6 |
|
BLAKE2b-256 | 846fcc95d9be9039ad875677914684f73918106871ac538c76563d4d223d270f |
File details
Details for the file sphinx_toggleprompt-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: sphinx_toggleprompt-0.5.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a666e760af3330550eb6a37a3edaab9892b7c68124dfb28e63cc94905f6b62 |
|
MD5 | 54b4bca4dd1b2b330dbb5fda85354689 |
|
BLAKE2b-256 | 8588df0bacd82ad05e9ea5d8b781688af7a5a8e9723e50b9c4c84a3105a17866 |