- Node.js 18.15.0
- npm 9.5.0
- Windows, macOS, or Linux
- Visual Studio Code
- The following VS Code extensions:
git clone https://github.com/Microsoft/vscode-notebook-renderers
cd vscode-notebook-renderers
npm ci
If you see warnings that The engine "vscode" appears to be invalid.
, you can ignore these.
Run the Build
build Tasks from the Run Build Task... command picker (short cut CTRL+SHIFT+B
or ⇧⌘B
). This will leave build task running in the background and which will re-run as files are edited and saved. You can see the output from either task in the Terminal panel (use the selector to choose which output to look at).
For incremental builds you can use the following commands depending on your needs:
npm run dev
TypeScript errors and warnings will be displayed in the Problems
window of Visual Studio Code.
Steps to build the extension on your machine once you've cloned the repo:
> npm install -g @vscode/vsce
> npm ci
> npm run package
- From the debug panel select
Run Extension
Note: This will automatically start the incremental build task. Optionally, use the commandDebug: Select and Start Debugging -> Run Extension
- Once VS Code launches, open a notebook file (
.ipynb
) with output for one of the mime types supported by this extension (such asapplication/vnd.vega.v2+json
)