question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run .Net interactive kernels on Azure Machine Learning Notebooks

See original GitHub issue

I am unble to run the dotnet interactive kernels in any remote editor or on the AML notebooks with the exception of VS Code when running a local Jupyter Server. When a .Net kernel is selected for a notebook it eventually comes back with the error “Kernel not found or was deleted. Your state may be lost. Please select a kernel and re-run cells to connect”. Using VS Code remotely I was able to generate some output that might be useful in troubleshooting this. I am attaching four files which are the outputs of the jupyter console in VSCODE.

  1. Switching to Remote Jupyter Server
  2. Switching to Local Jupyter Server
  3. Execute a cell on the Remote Server
  4. Execute a cell on the Local Server

The compute node that Jupyter runs on is:

Azure Compute Node:

Runtime Environment: OS Name: ubuntu OS Version: 18.04 OS Platform: Linux RID: ubuntu.18.04-x64

Installation steps I followed on compute node:

1. Check the installed frameworks

dotnet --info

2. Install or update sdk and aspnetcore runtime as needed

wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0

3. Re-check installed framweworks

dotnet --info

4. install the dotnet interactive tool

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

5. check dotnet interactive installed

dotnet tool list -g 

6. check the installed kernels

jupyter kernelspec list

7. install the dotnet interactive kernels on jupyter

dotnet interactive jupyter install 

8 re check the installed kernels

jupyter kernelspec list

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
YnnamTenobcommented, Apr 14, 2021

got it @lqdev Eureka. I got the wrong PATH. How silly of me. Thank you. Can we all say confusing or at least not consistant. Thanks again. Oh and my most sincere apologies for not paying close attention to your linked document, had I done so I would not have made an arse of myself.

0reactions
jonsequiturcommented, Apr 14, 2021

Thanks for helping out here @lqdev! (Or should I call you @luisquintanilla?) 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run Jupyter notebooks in your workspace - Azure
Use the terminal to create and add new kernels to your compute instance. The notebook will automatically find all Jupyter kernels installed on ......
Read more >
Running ML.NET + Notebooks in Azure Machine Learning ...
Install C# Kernel · Go to ml.azure.com. · Open up the "Notebooks" tab on the lefthand side of the page · Create a...
Read more >
Unable to install nuget:Microsoft.DotNet.Interactive.SqlServer
In a notebook, run the #!about magic command. (see below for screenshot) .NET Interactive © 2020 Microsoft Corporation Version: 1.0.233002+ ...
Read more >
I got an error that the kernel could not be found in Azure ml.
When I was using a compute instance with azure ml, I got the following message: The kernel for python 3.8 azure ml was...
Read more >
Upgrade to Microsoft.ML, 1.5.0-preview2 causes Jupyter ...
When I upgraded to 1.5.0-preview2 packages, the notebook now fails. The error occurs while using dotnet interactive in a .NET Jupyter ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found