As Visual Studio Code notebook support is still in preview, you will need to have Visual Studio Code Insiders installed.
This extension adds support for using .NET Interactive in a Visual Studio Code notebook.
- Install the .NET SDK 3.1.
- Install the latest .NET Interactive Global Tool.
- Install the latest VS Code Insiders.
- In your terminal, run
npm i
in this directory. - Open this directory with
code-insiders
and pressF5
. - Open a file with a
.dotnet-interactive
or.ipynb
extension.
Periodically the notebook APIs will change; the latest API can be obtained by running the .\update-proposed-api.ps1
script.
To create an installable .vsix
and use it in the latest Visual Studio Code Insiders build, run the following commands:
# package
npm run package
# deploy
code-insiders --install-extension ./dotnet-interactive-vscode-42.42.42.vsix
#launch
code-insiders --enable-proposed-api ms-dotnettools.dotnet-interactive-vscode