interactive: Can't install .NET Jupyter in WSL2 after installing .NET Core 5.0

Describe the bug

Please provide as much information as you can.

After installing .NET Components in Linux Ubuntu 20.04, I can’t proceed to install Jupyter interactive:

(base) max_t@maxtlaptop1:~$ dotnet interactive jupyter install
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
(base) max_t@maxtlaptop1:~$

Please complete the following:

Which version of .NET Interactive are you using? There are a few ways to find this out:

  • In a notebook, run the #!about magic command.
  • At the command line, run dotnet interactive --version.
  • In VS Code, run "Report installed version for .NET Interactive` and copy the version number from the status popup.

Following .NET command didn’t work:

(base) max_t@maxtlaptop1:~$ dotnet interactive --versions
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
(base) max_t@maxtlaptop1:~$

Strangely, the error is pointing to “framework_version=3.1.0”.

This other command works:

(base) max_t@maxtlaptop1:~$ dotnet --version
5.0.100
(base) max_t@maxtlaptop1:~$

Listing runtimes:

(base) max_t@maxtlaptop1:~$ dotnet --list-runtimes
Microsoft.AspNetCore.App 5.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
(base) max_t@maxtlaptop1:~$
  • OS
    • [ X] Windows 10 - ver.2004 (OSBuild 20257.1)
    • macOS
    • [ X] Linux (Please specify distro) - Ubuntu 20.04
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem. Jupyter_InstallError_01_2020-11-16_10-19-56

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 15 (5 by maintainers)

Most upvoted comments

@iSazonov,

the error finally is resolved after updating the “dotnet. interactive” component with the following command in WSL:

PS /home/max_t> dotnet tool update -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive

Then followed by the command that used to would failed at the end;

PS /home/max_t> dotnet interactive jupyter install

Welcome to .NET Interactive!
---------------------
Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience.The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Installing using jupyter kernelspec module.
Installed ".NET (C#)" kernel.
Installing using jupyter kernelspec module.
Installed ".NET (PowerShell)" kernel.
Installing using jupyter kernelspec module.
Installed ".NET (F#)" kernel.

no error_2021-01-17_20-54-02

I updated PowerShell global ;

PS /home/max_t> dotnet tool update -g Microsoft.dotnet-interactive
Tool 'microsoft.dotnet-interactive' was reinstalled with the latest stable version (version '1.0.155302').
PS /home/max_t> dotnet tool update -g powershell
Tool 'powershell' was successfully updated from version '7.1.0' to version '7.1.1'.

But when run jupyter notebook and use the $PSVersion it’s showing an older version that doesn’t exist in my system.

So my question is when can I expect the newer version of PowerShell to BE available for Notebook?

nopwsh update_2021-01-17_20-54-02

So my question is when can I expect the newer version of PowerShell to BE available for Notebook?

/cc @TylerLeonhardt

I think dotnet interactive only supports dotnet core 3.0 for now.

@MaximoTrinidad .NET Interactive carries its own version of PowerShell, which is why the discrepancy.

So, after looking around the repository, when can we expect “.NET Interactive Jupyter kernel” to be updated to support .NET Core 5.0? At least the PowerShell tool got updated to v7.1.0.