3.3.6.1.2. sphinx-thebe#

Documentation PyPi page

Make your code cells interactive with a kernel provided by Thebe and Binder.

For example, click the button below. Notice that the code block beneath becomes editable and runnable!

print("hi")
print("hi")

See for more information about what you can do with sphinx-thebe.

Note

This package is a Sphinx wrapper around the excellent thebe project, a javascript tool to convert static code cells into interactive cells backed by a kernel.

3.3.6.1.2.1. Install#

To install sphinx-thebe first clonse and install it:

pip install sphinx-thebe

Then, add it to your Sphinx site’s conf.py file:

extensions = [
    ...
    "sphinx_thebe"
    ...
]

3.3.6.1.2.2. Configure and use#

For more information about how to configure sphinx-thebe, see .

For more information on using sphinx-thebe, see .