sphinx-toggleprompt 0.6.0


pip install sphinx-toggleprompt

  Latest version

Released: Feb 07, 2025

Project Links

Meta
Author: Michael Jurasovic
Requires Python: >=3.9

Classifiers

License
  • OSI Approved :: MIT License

sphinx-toggleprompt

PyPI | Documentation | Build

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.

Extras: None
Dependencies:
sphinx (>=5.0.0)