For example, click the button below. Notice that the code block beneath becomes editable and runnable!
See Using sphinx-thebe for more information about what you can do with
sphinx-thebe first clonse and install it:
pip install sphinx-thebe
Then, add it to your Sphinx site’s
extensions = [ ... "sphinx_thebe" ... ]