Skip to content

Kernel JavaScript API ​

Modules ​

ModuleDescription
checkpointsThis package provides the mechanism allowing to save the user's contents at various points in time, for any kernel.
gui-baseThe base of Basthon's interfaces (console and notebook): loading the kernel, the content given by the URL (from, script, aux, module...), sharing, downloads and kernel iframes (see GUIBase).
kernel-baseThe base of all Basthon kernels, used by the frontends: a kernel runs the user's code (in a worker, or in the main thread for the legacy Python kernel), receives its input and dispatches its outputs as events (see KernelBase).
kernel-base/workerThe base of the kernels running in a worker (@basthon/kernel-base/worker): KernelMainBase on the main thread side, KernelWorkerBase in the worker, connected by expose (see "Writing a new kernel" in the contributors' documentation).
kernel-loaderLoad a kernel from its language (dynamic import of its package) and show Basthon's loading screen meanwhile (see KernelLoader).