Skip to main content

API reference

import observablejs as obs

The top-level package exports the runtime objects and cell helpers:

ExportContract
NotebookControls a notebook definition and Python-owned state.
NotebookViewRenders selected cells and exposes one consistent browser state.
view_from_*Builds a full AnyWidget view through a standalone factory.
NotebookCellIdentifies one notebook-owned cell by key.
CellDescribes one authored cell.
ojs, js, md, htmlCreate common cell modes.
NotebookGraphContains cells and symbolic dependencies.
CellInfoDescribes one graph cell.
DependencyEdgeLinks source and target cells through one variable.
NOTEBOOK_THEMESLists accepted Notebook Kit themes.
typesNamespaces advanced typed mappings and state records.

Use Source constructors for imported notebooks, File attachments for files, and Variables and serialization for state conversion.