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 docs.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1468c93f222114d52a86d5651b8fde274e87115ec28c0129afac86ef3fde32ed |
|
MD5 | 0c9a7ec3f3b6418838f124088ce52cff |
|
BLAKE2b-256 | bece31eefba3f31fd1c96155489e9b816963286c30657c13cc99287a2cd8c57f |
Close
Hashes for sphinx_toggleprompt-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d5c1629aecdf6398b12ecfef30bdecb08a7574d5cd6b3e81626b5a5c0ae7af |
|
MD5 | d328fc71b83ee8494f00e691b9d82017 |
|
BLAKE2b-256 | 6a79db80cdeb48f448da3aa68da07df4792211a360851833c02a91b6f676e1b4 |