Deserialize contents of a notebook file into the notebook data structure.
Contents of a notebook file.
A cancellation token.
Notebook data or a thenable that resolves to such.
Serialize notebook data into file contents.
A notebook data structure.
A cancellation token.
An array of bytes or a thenable that resolves to such.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
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.