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
Config
object holds the set of current options alongside aThebeEvents
instance. A configuration culd be provided per application or per page.ThebeEvents
is an object that providedjquery
-like events interfacetrigger
,on
,one
,off
, all objects that receive the `configc instance will use the same events object.
- A
ThebeServer
holds theSessionManager
(ServiceManager
in 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
ThebeSession
holds a kernel connection and is used to interact with the kernel- The session also creates an instance of a
WidgetManager
that is shared between allRendermimeRegistryies
in notebooks or cells that attach to it
- The session also creates an instance of a
- A
ThebeNotebook
holds a list of cells and provides funcitons to load source code into cells and execute them- A notebook holds a
RendermimeRegistry
that is shared with aii it's cells
- A notebook holds a
- A
ThebeCell
holds source code and can be executed in a session.ThebeCell
inherits fromPassiveThebeCell
which is only concerned with attaching to the DOM and rendering anOutputArea
- If created independently of a
ThebeNotebook
it will hold it's own instance of aRendermimeRegistry