NotebookSerializer

The notebook serializer enables the editor to open notebook files.

At its core the editor only knows a notebook data structure but not how that data structure is written to a file, nor how it is read from a file. The notebook serializer bridges this gap by deserializing bytes into notebook data and vice versa.

Online Documentation

Functions

Link copied to clipboard
abstract external fun deserializeNotebook(content: Uint8Array<*>, token: CancellationToken): PromiseResult<NotebookData>

Deserialize contents of a notebook file into the notebook data structure.

Link copied to clipboard
abstract external fun serializeNotebook(data: NotebookData, token: CancellationToken): PromiseResult<Uint8Array<*>>

Serialize notebook data into file contents.