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.6.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

sphinx_toggleprompt-0.6.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_toggleprompt-0.6.0.tar.gz.

File metadata

  • Download URL: sphinx_toggleprompt-0.6.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for sphinx_toggleprompt-0.6.0.tar.gz
Algorithm Hash digest
SHA256 59c726ecf3f0bb48be77f96b823ce6bcf4ed15ef1e0d6d85bed781b72d9347df
MD5 d5a079a7cd59cd8a5f8f1b93e67354ef
BLAKE2b-256 e9909694dc656f1f96688a5f1d300cafbfa6609f15973bfef089efd758c2ef66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_toggleprompt-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea116fbe0c438b12cbdcd85394b28a5abf7f8387417a64f230594f3c7bc7ded2
MD5 a7238eb528bc54d2336dc71654e8f450
BLAKE2b-256 a7b49fab92539e10bc277340e59808cdb7c1564c9a672d6b123bb13b97c05912

See more details on using hashes here.

Supported by

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