Update live_code.ipynb

This commit is contained in:
Tom van Woudenberg 2024-03-15 14:58:18 +01:00
parent ed4bcd7a27
commit 41dd66375c

View file

@ -28,10 +28,6 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Python-enabled interactivity\n",
"\n",
"Our book has been enable to run Python code live in the browser (thanks Max!). This page contains some installation instructions and the other sections show how to use this functionality to create interactive figures and feedback on code\n",
"\n",
"## Setting up Python live coding\n",
"To set up the Python live coding you need to add our [own sphinx-thebe extension](https://gitlab.tudelft.nl/interactivetextbooks-citg/extensions/sphinx-thebe) to your book. This extensions doesn't rely on a 3rd party like Binder and it supports local python execution and custom features. Therefore, you need to add some lines to `requirements.txt` and `_config.yml`\n",
"\n",
@ -119,6 +115,11 @@
"%pip install package_name\n",
"```\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {