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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2fa8ffd72cf681d1ef4b19bf1fce513d6c9b3a902165c1d04b44f79d9f4095 |
|
MD5 | 1df7deffa7187ff7b7f5696653fa420d |
|
BLAKE2b-256 | b2836ecd7760c6bb7b599a76888e3fe7889f75a4453de2b24ea58753ef5ddd2d |
Close
Hashes for sphinx_toggleprompt-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27f417e92b6ae6db047f7ff6e4ccf0ca066c4de31b0477e1e333ff217dae3f5c |
|
MD5 | ade0b5c124ea985adcccc9c27b65444f |
|
BLAKE2b-256 | 7dfb783a21574fb6cc25e19b588f36968e74e23291e827594b397687616b5c4b |