interactive: Can't open or create .Net Interactive notebook

On a clean Windows 11 install of VS Code (or Insiders), and installation of .Net Interactive notebooks, I can’t create or open .Net Interactive notebooks. I’m not sure if this is different from #1813.

.Net Interactive 1.0.2462010 is the latest version that opens a UI when I select “Create a new .Net Interactive Notebook”. Newer versions just hang with the message “Activating Extensions…” which seems to time out after a couple seconds:

image

But even if a notebook (.dib or .ipynb) is created with the earlier versions, I can’t seem to execute any C# code - kernel execution hangs on a Hello World.

Tried installing the .Net 5 SDK, just in case, but that didn’t help. Here’s my full set of .Nets:

PS C:\> dotnet --list-sdks
3.1.416 [C:\Program Files\dotnet\sdk]
5.0.404 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
6.0.200-preview.22055.15 [C:\Program Files\dotnet\sdk]

Repro’d on VS Code:

Version: 1.63.2 (user setup) Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3 Date: 2021-12-15T09:40:02.816Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.22000

…and VS Code Insiders:

Version: 1.64.0-insider (user setup) Commit: c6e58d126f6b5676242e32b34180b2a595f29b51 Date: 2022-01-14T05:19:33.429Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.22000

What can I do to help track down? Should I create a separate ticket? I’ve grown so comfortable using .Net Interactive in my daily workflow, I’m at a loss for what to do!

  • OS
    • [ x] Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • [ x] Visual Studio Code
    • [x ] Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Confirming removing VS 2022 Preview resolves this issue. So it’s MAUI or Interactive for now (FWIW, I chose Interactive 😃).

Same here. Can’t use any .NET Interactive at the moment … I’m on VS Code 1.63.2. I noticed that both of us have a 6.0.200-preview version installed (in addition to latest 6.0.100).

Probably not related, since .NET Interactive isn’t using dotnet run.

The root cause is here: dotnet/sdk#23687

The only workaround is to uninstall, or otherwise disable, the 6.0.200-preview.22055.15 sdk.

@jonsequitur There is only Python 3.9.7 in the list … Looks like .NET Interactive is not “registered” correctly.

Previously (before moving to Win 11 and fresh install) I always had Jupyter and the dotnet interactive global tool installed as well. But that should not be necessary, right? Will try anyway and report back. But, just VS Code + Extension + SDK should do it, right?