Add interactivity with sphinx-thebe

This commit is contained in:
Tom van Woudenberg 2024-02-27 10:00:11 +01:00
parent f046c98bbf
commit 0c00a4cdce
2 changed files with 19 additions and 2 deletions

View file

@ -3,11 +3,22 @@ author: Caspar Jungbacker
logo: images/TUDelft_logo_rgb.png logo: images/TUDelft_logo_rgb.png
execute: execute:
execute_notebooks: auto execute_notebooks: 'off'
launch_buttons:
thebe: true
sphinx: sphinx:
extra_extensions: extra_extensions:
- sphinx_inline_tabs - sphinx_inline_tabs
- jupyterlite_sphinx - jupyterlite_sphinx
- sphinx.ext.imgconverter
- download_link_replacer
- jupyterbook_patches
config: config:
jupyterlite_config: jupyterlite-config.json jupyterlite_config: jupyterlite-config.json
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
thebe_config:
use_thebe_lite: true
exclude_patterns: ["**/_*.yml", "**/*.md", "**/*.ipynb"]

View file

@ -1,4 +1,10 @@
jupyter-book jupyter-book
sphinx-inline-tabs sphinx-inline-tabs
jupyterlite-xeus-python jupyterlite-xeus-python
jupyterlite-sphinx jupyterlite-sphinx
--extra-index-url https://gitlab.tudelft.nl/api/v4/projects/11239/packages/pypi/simple
sphinx-thebe == 0.2.1000
--extra-index-url https://gitlab.tudelft.nl/api/v4/projects/17983/packages/pypi/simple
jupyterbook_patches == 0.1.2
download_link_replacer @ git+https://gitlab.tudelft.nl/mude/sphinx-download-link-replacer@dlr-0.1.2