Files

24 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2021-08-01 21:30:26 -07:00
# notebook-renderer-sample
Demonstrates a custom [notebook renderer](https://code.visualstudio.com/api/extension-guides/notebook#notebook-renderer) in VS Code. This creates a custom renderer called `GitHub Issues Plain Renderer` that renders output in a [GitHub Issues Notebook](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-github-issue-notebooks).
2021-08-01 21:30:26 -07:00
This starter includes:
2022-11-29 20:58:49 +01:00
- 🖥️ TypeScript code to create a simple `NotebookOutputRenderer`
- 📦 A Webpack build for the renderer
- 🎨 CSS modules support
2021-08-01 21:30:26 -07:00
2022-11-29 20:58:49 +01:00
## Running this Sample
Ensure you have a Python installed to actually run the sample and invoke the renderer.
2021-08-01 21:30:26 -07:00
1. `cd notebook-renderer-sample`
2022-11-29 20:58:49 +01:00
1. `code .`: Open the folder in VS Code Insiders
2021-08-01 21:30:26 -07:00
1. Hit `F5` to build+debug
2022-11-29 20:58:49 +01:00
1. Run the sample notebook
1. Switch the output rendering by clicking [...] button next to the cell output and then _Change Presentation_
When you select the `x-application/github-issues`, the custom renderer will be invoked.
![Notebook cell output renderer demo](notebook-renderer-sample.gif)