thebelab0.4.0 • Public • Published
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)
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.
See the ThebeLab Documentation for more information.
How ThebeLab works
Starting ThebeLab involves the following steps:
- Fetching the ThebeLab configuration from the page header;
- Bootstrapping 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.
Bootstrap Thebelab by calling
bootstrap: true is
in the Thebelab configuration (see below), this will be triggered automatically
upon page load.
For complete information about configuring ThebeLab, see the ThebeLab documentation.
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).