Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using !connect jupyter, Python process created by VS Code is left orphan once closing a notebook #3784

Open
2 of 17 tasks
ruxo opened this issue Nov 29, 2024 · 0 comments
Open
2 of 17 tasks
Labels
Area-Jupyter subkernels bug Something isn't working

Comments

@ruxo
Copy link

ruxo commented Nov 29, 2024

Describe the bug

I've installed Anaconda on my machine and connected the notebook using the provided directive:

#!connect jupyter --kernel-name pythonkernel --conda-env base --kernel-spec python3

Following the instructions, I created a Raw Value Storage cell, placed this directive in it, and executed it. This allowed me to create other Python cells using the new kernel.

However, I noticed an issue when renaming the .dib file. When VS Code reopens the renamed file, the Python process created during the notebook's execution is left orphaned. The same issue occurs when I close VS Code while working with the notebook—leaving behind a running Python process. It seems like these processes are not being properly cleaned up upon file renaming or closing VS Code.

Please complete the following:

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

Version: 1.0.556801+2d9726b514498cd84403a1d5d13da3161c99eab2
Library version: 1.0.0-beta.24568.1+2d9726b514498cd84403a1d5d13da3161c99eab2
Build date: 2024-11-28T02:23:58.7753388Z
  • 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)

Screenshots

Image

@jonsequitur jonsequitur added bug Something isn't working Area-Jupyter subkernels labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Jupyter subkernels bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants