dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.85k stars 381 forks source link

Codespaces Only - Kernel Stops Unexpectedly #2395

Open olguzzar opened 1 year ago

olguzzar commented 1 year ago

Describe the bug

Please provide as much information as you can.

When running this notebook in a Codespace, one of the cells var result = await experiment.RunAsync(); just spun and spun. Upon looking at the diagnostics, the kernel ended. There was no visual indication or notification to the user that the kernel had ended, unless they were to look at the diagnostics.

Expected behavior would be to 1) successfully run the cell without the kernel ending and 2) IF the kernel encounters a problem that ends the kernel, there should be some visual indicator to the user that the kernel has stopped

This occurred both when connected to the codespace via the web or the desktop. This did NOT happen when running the notebook outside of a codespace

Output of .net interactive diagnostics: Extension started for VS Code Stable. create-tool-manifest: Executing [dotnet new tool-manifest] in '/home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode'. create-tool-manifest: Finished with code 0. create-tool-manifest: STDOUT: The template "Dotnet local tool manifest file" was created successfully. tool-uninstall: Executing [dotnet tool uninstall Microsoft.dotnet-interactive] in '/home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode'. tool-uninstall: Finished with code 1. tool-uninstall: STDERR: Cannot find a manifest file that contains package id 'microsoft.dotnet-interactive'. tool-install: Executing [dotnet tool install --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --ignore-failed-sources Microsoft.dotnet-interactive --version 1.0.350406] in '/home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode'. tool-install: Finished with code 0. tool-install: STDOUT: You can invoke the tool from this directory using the following commands: 'dotnet tool run dotnet-interactive' or 'dotnet dotnet-interactive'. Tool 'microsoft.dotnet-interactive' (version '1.0.350406') was successfully installed. Entry is added to the manifest file /home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode/.config/dotnet-tools.json. Started process 8617: dotnet tool run dotnet-interactive -- notebook-parser Starting kernel for '[file:///workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb](file://workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb)' using: dotnet tool run dotnet-interactive -- [vscode] stdio --working-dir /workspaces/dotnetconf-studentzone/Using ML.NET for Machine Learning Kernel for '[file:///workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb](file://workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb)' started (8694). Kernel for '[file:///workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb](file://workspaces/dotnetconf-studentzone/Using%20ML.NET%20for%20Machine%20Learning/WaterConsumptionMLproject.ipynb)' ended (8694) with code 137.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): Version: 1.0.350406+612aa40cba7d6a1f734272f71657a65561394752

Screenshots

Video repro while connected to the codespace via the desktop app:

https://user-images.githubusercontent.com/95261576/198714493-e3e13c5c-1e3b-4300-ae21-6c363025c540.mp4

Video repro while connected to the codespace via the web:

https://user-images.githubusercontent.com/95261576/198715365-3af56a13-29d5-48fc-ba3e-97d789d5c820.mp4

Video of NOT being able to repro while running the notebook not in a codespace:

https://user-images.githubusercontent.com/95261576/198714455-06e5bac6-29ac-47e5-bc55-3f383ab25070.mp4

colombod commented 1 year ago

@brettfo