Packages¶
thebe-coreprovides a set of runtime object that re-use and wrap certain components and services provided byjuptyerlab. The aim is to provide a simplified interface, abstracting away from Jupyter (lab) & lumino internals and types, that can be used in a web application to connect to juptyer services, interact with them and track state.thebe-liteprovides the means to start aJupyterLiteServerand bundles allJupyterlitedependencies in isolationthebeusesthebe-corewithcodemirrorto turn code blocks on a how web page into interactive cells and allow them to be executed.
Runtime Objects¶
The main objects provided are shown below in their default configuration.

In each object only some key members / properties are shown, the role of these and their scope is explained below:
- A
Configobject holds the set of current options alongside aThebeEventsinstance. A configuration culd be provided per application or per page.ThebeEventsis an object that providedjquery-like events interfacetrigger,on,one,off, all objects that receive the `configc instance will use the same events object.
- A
ThebeServerholds theSessionManager(ServiceManagerin the case of JupyterLite)- it provides member function to establish a connecton
- it provides functions to start a new or connect to an existing session/kernel
- A
ThebeSessionholds a kernel connection and is used to interact with the kernel- The session also creates an instance of a
WidgetManagerthat is shared between allRendermimeRegistryiesin notebooks or cells that attach to it
- The session also creates an instance of a
- A
ThebeNotebookholds a list of cells and provides funcitons to load source code into cells and execute them- A notebook holds a
RendermimeRegistrythat is shared with aii it's cells
- A notebook holds a
- A
ThebeCellholds source code and can be executed in a session.ThebeCellinherits fromPassiveThebeCellwhich is only concerned with attaching to the DOM and rendering anOutputArea- If created independently of a
ThebeNotebookit will hold it's own instance of aRendermimeRegistry