interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Polyglot Notebook: [DevExE2E] The cell kept in running status and can't be stopped in the newly created .dib/ipynb file.

Open v-hozha1 opened this issue 1 year ago • 1 comments

Describe the bug

We fail to execute the cell with very simple F# code "1+1". The cell is kept in running status and can't be stopped in the newly created .dib/ipynb file.

Detailed Repro Build info: VSCodeSetup-x64-1.90.0 + dotnet-interactive-vscode-1.0.5312031.vsix + dotnet-sdk-8.0.302-win-x64

VS Code link: https://code.visualstudio.com/download# Version: 1.90.0 (system setup) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:33:54.889Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.19045

dotnet-interactive-vscode-1.0.5312031.vsix https://dev.azure.com/dnceng/internal/_build/results?buildId=2472419&view=artifacts&pathAsName=false&type=publishedArtifacts

Steps: 1.Ctrl+Shift+P` => "Polyglot Notebook: Create new blank notebook" 2.Select "Create as .ipynb" 3.Select "F#" 4.Set the cell contents to 1+1 and execute. 5. If the cell kept in running steps, click stop or Stop Execution button.

Note: If you don't encounter this issue, please close VS code and repeated above steps again.

Expected Results: The cell should be executed normally, and users can stop cell running with no issue.

Actual Results: The cell is kept in running status and can't be stopped in the newly created .dib/ipynb file. image

NewHang

Please complete the following:

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

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

v-hozha1 avatar Jun 13 '24 07:06 v-hozha1

I have the same problem with a python cell. Unfortunately it's not deterministic, as it works most of the time, just sometimes keeps running forever after printing the four plots I have in this cell. The output below the cell looks complete, so it's stuck somewhere after the last command.

This is in a .dib file, .NET Interactive, #!connect jupyter --kernel-name pythonkernel --kernel-spec python3 in top cell.

Edit: Actually all this data is public, so here's the file to reproduce it, even though non-deterministically so good luck:
https://gitlab.com/Regenhardt/bachelorarbeit/-/blob/c8c9b9b736d23e9db2176334d99a78ef630a7fdd/Code/fall_detection.dib

Note the file loads data in the same repository so you need to clone the whole thing.

Regenhardt avatar Aug 23 '24 21:08 Regenhardt