Skip to main content

Add a python prompt toggle to each code cell.

Project description


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 configuration file, add sphinx_toggleprompt to your extensions list.

extensions = [

Usage with sphinx-copybutton

sphinx-toggleprompt works well with sphinx-copybutton - see the documentation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-toggleprompt-0.5.2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

sphinx_toggleprompt-0.5.2-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page