ThebeLab: turning static HTML pages into live documents
Have a static HTML page with code snippets? Your readers can edit and execute them right there. All it takes is:
- A brief header in the HTML page
- A computing backend (typically binder)
TODO: add screenshots.
ThebeLab is a based on the Jupyter technology, and thus supports a wealth of programming languages. The original implementation, called Thebe was a fork of the Jupyter code base. ThebeLab is a reimplementation of Thebe as a thin layer on top of JupyterLab, making it more sustainable.
How ThebeLab works
Starting ThebeLab involves the following steps:
- Fetching the ThebeLab configuration from the page header;
- Bootstraping ThebeLab:
- Re rendering the code cells to make them live cells. Optionally, the rendering can handle cells that contain a mixture of inputs and ouputs distinguished by prompts (see the stripPrompts option);
- (optional) Requesting a notebook server from Binder;
- (optional) Requesting a Jupyter kernel from the Jupyter server.
You can configure thebelab with a script tag.
The script should have
A full config script with defaults:
thebelab was developed as a part of OpenDreamKit – Horizon 2020 European Research Infrastructure project (676541).