Files
vscode-extension-samples/notebook-serializer-sample
Matt Bierner 73e249b3c1 Migrate all samples to eslint 9
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
2024-10-26 17:44:03 -07:00
..
2023-01-10 16:13:47 -08:00
2024-10-26 17:44:03 -07:00
2023-01-10 16:13:47 -08:00
2024-10-26 17:44:03 -07:00
2023-01-10 16:13:47 -08:00
2023-01-10 16:13:47 -08:00

notebook-serializer-sample

This is a very simple extension sample demonstrating the use of the notebook serializer and controller APIs. This sample includes:

  • A notebook serializer that is activated for files matching *.sample-json-notebook. It serializes notebook data into a simple JSON-based format.
  • A notebook controller that "executes" JSON-type code cells by adding an output to the cell that includes the content of the cell parsed as JSON.
  • A command "Create JSON Notebook" that creates a new untitled notebook of this type.

Running this sample

  1. cd notebook-serializer-sample
  2. code .: Open the folder in VS Code
  3. Hit F5 to build+debug
  4. Run the command "Create JSON Notebook"
  5. Add and edit cells, and click the run button to invoke the controller