Interface 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.

interface NotebookSerializer {
    deserializeNotebook(content, token): NotebookData | Thenable<NotebookData>;
    serializeNotebook(data, token): Uint8Array | Thenable<Uint8Array>;
}

Methods