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.
Functions
Link copied to clipboard
abstract fun deserializeNotebook(content: Uint8Array<*>, token: CancellationToken): PromiseResult<NotebookData>
Deserialize contents of a notebook file into the notebook data structure.
Link copied to clipboard
abstract fun serializeNotebook(data: NotebookData, token: CancellationToken): PromiseResult<Uint8Array<*>>
Serialize notebook data into file contents.