Skip to main content

Add a python prompt toggle to each code cell.

Project description

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.

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sphinx-toggleprompt-0.5.2.tar.gz.

File metadata

  • Download URL: sphinx-toggleprompt-0.5.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sphinx-toggleprompt-0.5.2.tar.gz
Algorithm Hash digest
SHA256 5eb5925a53dcf242d1c6c839653775e3dc9fbecf985d997913b4eea8e185f888
MD5 cdc0aaa5247189fb97983baba129cfb6
BLAKE2b-256 846fcc95d9be9039ad875677914684f73918106871ac538c76563d4d223d270f

See more details on using hashes here.

File details

Details for the file sphinx_toggleprompt-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_toggleprompt-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94a666e760af3330550eb6a37a3edaab9892b7c68124dfb28e63cc94905f6b62
MD5 54b4bca4dd1b2b330dbb5fda85354689
BLAKE2b-256 8588df0bacd82ad05e9ea5d8b781688af7a5a8e9723e50b9c4c84a3105a17866

See more details on using hashes here.

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