manual_teachbooks/book/features/python_interactivity.md
2024-04-12 08:11:50 +02:00

982 B

Python-enabled interactivity

:class: tip
This section is useful for user type 5-6.

In general, there are two option to include python-enabled interactivity embedded in your book:

  • Using our own sphinx-thebe extension which makes code cells in your .ipynb book pages editable and executable by the reader! Opposed to the original sphinx-thebe extensions, our extension runs python in the reader's browser and doesn't rely on an external webserver for the python kernel. We highly recommend this extension as it allows you to use the strength of combining text/figures and code of a jupyter book with interactivity!
  • Using JupyterLite to create 'iframe-like' Ipython consoles / jupyterbook / jupyter lab environments in your book. As these 'iframes' are separate modules added to your page, the integration with the other content in your book is less flexible as with our sphinx-thebe extension.