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.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28bb0d135fcc4b11b7b34b7566e651b7d3b613e30a0ed60d8553d6461bfb9774 |
|
MD5 | b4942c42ceaebd230032da119bd62d8a |
|
BLAKE2b-256 | 0854d663de622124c97962a542d2c85e0e52f5540d049c0535da984eef536042 |
Close
Hashes for sphinx_toggleprompt-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799e7281a6cf7aa6b19c7effa27af1e54ce6d17023c53f6f4bf213668bd28948 |
|
MD5 | f3790a57c8a42ee48dc460b395d62ca0 |
|
BLAKE2b-256 | e782d757c6e451ade5f6cc942a568efd6facd3e3845f35e9f60681e20b3eb4ad |