-
Notifications
You must be signed in to change notification settings - Fork 300
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
Kernel is lost in the middle of working with a notebook #16366
Comments
Thank you for filing this issue, please can you try to disable all other extensions except for Jupyter, Python, Notebook Renderers and try this again. |
@DonJayamanne the only 3rd party extension I have is Ruff (
As the issue happens infrequently, this could take quite some time to validate. This also means that it will be quite disrupting to disable all extensions for extended period of time, so I would like to minimize the impact. Also are there any other, more active diagnostics I could perform? Thank You! |
Based on the logs the virtual environment Based on the logs the Python extension is indicating the fact that this was removed, see below
|
@DonJayamanne No, of course not. It's still there. Didn't even reinstall it, didn't do any pip installs, didn't do anything like that when this was happening. |
@karthiknadig Not sure why this is happening, please can you have a look why Python extension is reporting the env as having been deleted? |
@jeckst Do you happen to have logs from Output > Python Locator and Output > Python? |
@karthiknadig Unfortunately not from the time of the incident (unless these are archived somewhere I'm not aware of?). I will collect these when this happens again. Is there any verbosity setting I should have so that the outputs are actually useful to you? |
I have some fresh logs for you. Jupyter: 11:13:17.695 [trace] Python API env change detected, update => '/bin/python3'
11:13:17.734 [debug] Controller startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher' for view = 'jupyter-notebook' is no longer a valid
11:13:17.734 [debug] Controller startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:13:17.734 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher' for view = 'jupyter-notebook'
11:13:17.734 [debug] Disposing controller .jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher associated with connection .jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher
11:13:17.736 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:13:17.736 [debug] Disposing controller .jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher (Interactive) associated with connection .jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher
11:13:17.737 [trace] Python API env change detected, remove => '/home/~/Code/other-folder/venv/bin/python'
11:13:17.738 [debug] Controller startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher' for view = 'jupyter-notebook' is no longer a valid
11:13:17.738 [debug] Controller startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:13:17.738 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher' for view = 'jupyter-notebook'
11:13:17.738 [debug] Disposing controller .jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher associated with connection .jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher
11:13:17.738 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:13:17.738 [debug] Disposing controller .jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher (Interactive) associated with connection .jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher
11:13:17.738 [trace] Python API env change detected, remove => '/home/~/Code/venv/bin/python'
11:13:17.742 [debug] Refreshed Environments
11:13:18.738 [debug] Interpreter removed /home/~/Code/other-folder/venv/bin/python
11:13:18.738 [debug] Interpreter /home/~/Code/other-folder/venv/bin/python deleted, hence deleting corresponding kernel startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.738 [debug] Interpreter /home/~/Code/other-folder/venv/bin/python deleted, hence deleting corresponding kernel startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher
11:13:18.738 [debug] Local Python connection deleted startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher: (interpreter id=~/Code/other-folder/venv/bin/python)',startUsingPythonInterpreter:'.jvsc74a57bd0cb263918e12964027ea9f0d131dde36ac8322eb0dbec88d1cad871e0aa00fdca./home/~/Code/other-folder/venv/python./home/~/Code/other-folder/venv/python.-m#ipykernel_launcher: (interpreter id=~/Code/other-folder/venv/bin/python)'
11:13:18.738 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook' is no longer a valid
11:13:18.738 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:13:18.738 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook'
11:13:18.738 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher associated with connection .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.738 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:13:18.738 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive) associated with connection .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.739 [debug] Interpreter removed /home/~/Code/venv/bin/python
11:13:18.739 [debug] Interpreter /home/~/Code/venv/bin/python deleted, hence deleting corresponding kernel startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.739 [debug] Interpreter /home/~/Code/venv/bin/python deleted, hence deleting corresponding kernel startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher
11:13:18.739 [debug] Local Python connection deleted startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher: (interpreter id=~/Code/venv/bin/python)',startUsingPythonInterpreter:'.jvsc74a57bd0afb3537a3a229c95c9ecc4389c95da1d30271c7a49e53e4f7a112274cd52aede./home/~/Code/venv/python./home/~/Code/venv/python.-m#ipykernel_launcher: (interpreter id=~/Code/venv/bin/python)'
11:13:18.739 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:13:18.739 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:13:18.739 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive) associated with connection .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.740 [warn] Deleting controller .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher as it is associated with a connection that has been deleted startUsingLocalKernelSpec:.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:13:18.740 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher associated with connection .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher and documents file:///home/~/Code/some-folder/eda.ipynb
11:13:18.742 [debug] End refreshing Kernel Picker (1738923197610)
11:14:46.636 [trace] Python API env change detected, update => '/bin/python3'
11:14:46.636 [trace] Search for KernelSpecs in Interpreter /bin/python3
11:14:46.636 [debug] Start refreshing Kernel Picker (1738923286636)
11:14:46.636 [trace] Search for KernelSpecs in Interpreter /bin/python3
11:14:46.641 [warn] The following kernels use interpreters that are no longer valid or not recognized by Python extension, Kernels startUsingLocalKernelSpec:'id=.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher'(interpreterId='~/Code/venv/bin/python'),startUsingLocalKernelSpec:'id=.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher'(interpreterId='~/Code/other-folder/venv/bin/python') and valid interpreter ids include /bin/python3, /usr/bin/python3, /bin/python3.12, /usr/bin/python3.12
11:14:46.641 [debug] Local Python connection deleted startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher: (interpreter id=~/Code/venv/bin/python)',startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher: (interpreter id=~/Code/other-folder/venv/bin/python)'
11:14:46.641 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook' is no longer a valid
11:14:46.641 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:14:46.641 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook' is no longer a valid
11:14:46.641 [debug] Controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive' is no longer a valid
11:14:46.641 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook'
11:14:46.641 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher associated with connection .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:14:46.642 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:14:46.642 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive) associated with connection .undefined.-xfrozen_modules=off./home/~/Code/venv/bin/python3.12./home/~/Code/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:14:46.642 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher' for view = 'jupyter-notebook'
11:14:46.642 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher associated with connection .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:14:46.642 [warn] Disposing old controller startUsingLocalKernelSpec:'.undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive)' for view = 'interactive'
11:14:46.642 [debug] Disposing controller .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher (Interactive) associated with connection .undefined.-xfrozen_modules=off./home/~/Code/other-folder/venv/bin/python3.12./home/~/Code/other-folder/venv/python.-xfrozen_modules=off#-m#ipykernel_launcher
11:14:46.643 [debug] End refreshing Kernel Picker (1738923286636) Python locator 2025-02-07 08:22:35.931 [info] Starting Python Locator /home/jeckst/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python-env-tools/bin/pet server
2025-02-07 08:22:36.913 [info] Discovered env: /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:22:36.962 [info] Discovered env: /bin/python3
2025-02-07 08:22:37.004 [info] Discovered env: /usr/bin/python3
2025-02-07 08:22:37.013 [info] Discovered env: /bin/python3.12
2025-02-07 08:22:37.014 [info] Discovered env: /usr/bin/python3.12
2025-02-07 08:22:37.019 [info] Locator Conda took 149.450415ms
2025-02-07 08:22:37.019 [info] Locator Homebrew took 158.702µs
2025-02-07 08:22:37.019 [info] Locator LinuxGlobal took 171.980548ms
2025-02-07 08:22:37.019 [info] Locator PipEnv took 42.577µs
2025-02-07 08:22:37.019 [info] Locator Poetry took 6.447996ms
2025-02-07 08:22:37.020 [info] Locator PyEnv took 6.827861ms
2025-02-07 08:22:37.020 [info] Locator Venv took 25.01µs
2025-02-07 08:22:37.020 [info] Locator VirtualEnv took 37.439µs
2025-02-07 08:22:37.020 [info] Locator VirtualEnvWrapper took 41.54µs
2025-02-07 08:22:37.020 [info] Locator GlobalVirtualEnvs took 12.601468ms
2025-02-07 08:22:37.020 [info] Locator Locators took 180.951217ms
2025-02-07 08:22:37.020 [info] Locator Path took 169.488017ms
2025-02-07 08:22:37.020 [info] Locator Workspaces took 97.612702ms
2025-02-07 08:22:37.020 [info] Refresh completed in 183ms
2025-02-07 08:22:37.021 [info] Resolved Python Environment /home/jeckst/Code/venv/bin/python
2025-02-07 08:22:37.029 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:22:37.037 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:22:37.273 [info] Resolved /bin/python3
2025-02-07 08:22:37.333 [info] Resolved /usr/bin/python3
2025-02-07 08:22:38.126 [info] Resolved /bin/python3.12
2025-02-07 08:22:38.143 [info] Resolved /usr/bin/python3.12
2025-02-07 08:23:10.140 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:28:31.713 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:29:38.413 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:47:53.578 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:49:50.825 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:50:26.420 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 08:52:46.550 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 09:00:44.382 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 09:01:43.128 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 09:47:52.874 [info] Starting Python Locator /home/jeckst/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python-env-tools/bin/pet server
2025-02-07 09:47:52.990 [info] Discovered env: /bin/python3
2025-02-07 09:47:53.006 [info] Discovered env: /usr/bin/python3
2025-02-07 09:47:53.007 [info] Discovered env: /usr/bin/python3.12
2025-02-07 09:47:53.008 [info] Discovered env: /bin/python3.12
2025-02-07 09:47:53.008 [info] Locator Conda took 84.050923ms
2025-02-07 09:47:53.009 [info] Locator Homebrew took 134.98µs
2025-02-07 09:47:53.009 [info] Locator LinuxGlobal took 85.763178ms
2025-02-07 09:47:53.009 [info] Locator PipEnv took 48.178µs
2025-02-07 09:47:53.009 [info] Locator Poetry took 288.88µs
2025-02-07 09:47:53.009 [info] Locator PyEnv took 214.276µs
2025-02-07 09:47:53.009 [info] Locator Venv took 68.526µs
2025-02-07 09:47:53.009 [info] Locator VirtualEnv took 30.835µs
2025-02-07 09:47:53.009 [info] Locator VirtualEnvWrapper took 28.018µs
2025-02-07 09:47:53.009 [info] Locator GlobalVirtualEnvs took 2.402316ms
2025-02-07 09:47:53.010 [info] Locator Locators took 87.215655ms
2025-02-07 09:47:53.010 [info] Locator Path took 87.459012ms
2025-02-07 09:47:53.010 [info] Locator Workspaces took 3.594507ms
2025-02-07 09:47:53.010 [info] Refresh completed in 87ms
2025-02-07 09:47:53.013 [info] Resolved Python Environment /home/jeckst/Code/venv/bin/python
2025-02-07 09:47:53.018 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 09:47:53.052 [info] Resolved /usr/bin/python3
2025-02-07 09:47:53.059 [info] Resolved /usr/bin/python3.12
2025-02-07 09:47:53.069 [info] Resolved /bin/python3.12
2025-02-07 09:47:53.118 [info] Resolved Python Environment /bin/python3
2025-02-07 09:47:56.550 [info] Resolved Python Environment /home/jeckst/Code/other-folder/venv/bin/python
2025-02-07 09:48:03.414 [info] Resolved Python Environment /home/jeckst/Code/venv/bin/python
2025-02-07 09:48:50.565 [info] Resolved Python Environment /bin/python3
2025-02-07 09:49:33.411 [info] Resolved Python Environment /bin/python3
2025-02-07 09:52:09.850 [info] Resolved Python Environment /bin/python3
2025-02-07 09:52:44.113 [info] Resolved Python Environment /bin/python3
2025-02-07 09:56:46.854 [info] Resolved Python Environment /bin/python3
2025-02-07 09:59:11.605 [info] Resolved Python Environment /bin/python3
2025-02-07 10:05:18.803 [info] Resolved Python Environment /bin/python3
2025-02-07 10:07:39.822 [info] Resolved Python Environment /bin/python3
2025-02-07 10:09:10.965 [info] Resolved Python Environment /bin/python3
2025-02-07 10:13:35.603 [info] Resolved Python Environment /bin/python3
2025-02-07 10:14:07.121 [info] Resolved Python Environment /bin/python3
2025-02-07 10:14:50.595 [info] Resolved Python Environment /bin/python3
2025-02-07 10:41:26.471 [info] Resolved Python Environment /bin/python3
2025-02-07 10:41:57.967 [info] Resolved Python Environment /bin/python3
2025-02-07 10:51:08.383 [info] Resolved Python Environment /bin/python3
2025-02-07 10:53:59.050 [info] Resolved Python Environment /bin/python3
2025-02-07 10:54:29.260 [info] Resolved Python Environment /bin/python3
2025-02-07 11:06:35.775 [info] Resolved Python Environment /bin/python3
2025-02-07 11:13:17.669 [info] Resolved Python Environment /bin/python3
2025-02-07 11:13:17.694 [info] Discovered env: /bin/python3
2025-02-07 11:13:17.707 [info] Discovered env: /usr/bin/python3
2025-02-07 11:13:17.709 [info] Discovered env: /bin/python3.12
2025-02-07 11:13:17.721 [info] Resolved /usr/bin/python3
2025-02-07 11:13:17.721 [info] Discovered env: /usr/bin/python3.12
2025-02-07 11:13:17.722 [info] Resolved /bin/python3.12
2025-02-07 11:13:17.724 [info] Resolved /usr/bin/python3.12
2025-02-07 11:13:17.730 [info] Locator Conda took 91.780533ms
2025-02-07 11:13:17.730 [info] Locator Homebrew took 99.351µs
2025-02-07 11:13:17.731 [info] Locator LinuxGlobal took 111.729709ms
2025-02-07 11:13:17.731 [info] Locator PipEnv took 35.025µs
2025-02-07 11:13:17.731 [info] Locator Poetry took 1.929913ms
2025-02-07 11:13:17.731 [info] Locator PyEnv took 542.257µs
2025-02-07 11:13:17.731 [info] Locator Venv took 26.17µs
2025-02-07 11:13:17.731 [info] Locator VirtualEnv took 35.435µs
2025-02-07 11:13:17.731 [info] Locator VirtualEnvWrapper took 1.025681ms
2025-02-07 11:13:17.731 [info] Locator GlobalVirtualEnvs took 260.434µs
2025-02-07 11:13:17.731 [info] Locator Locators took 114.370982ms
2025-02-07 11:13:17.731 [info] Locator Path took 104.350316ms
2025-02-07 11:13:17.733 [info] Locator Workspaces took 4.941994ms
2025-02-07 11:13:17.733 [info] Refresh completed in 114ms
2025-02-07 11:14:46.635 [info] Resolved Python Environment /bin/python3
2025-02-07 11:18:00.571 [info] Resolved Python Environment /bin/python3
2025-02-07 14:55:20.439 [info] Resolved Python Environment /bin/python3
2025-02-07 14:57:36.692 [info] Resolved Python Environment /bin/python3 Python 2025-02-07 08:22:35.898 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-07 08:22:35.898 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-07 08:22:35.898 [info] Experiment 'pythonTestAdapter' is active
2025-02-07 08:22:35.898 [info] Native locator: Refresh started
2025-02-07 08:22:35.898 [info] Native locator: Refresh started
2025-02-07 08:22:35.931 [info] > pyenv which python
2025-02-07 08:22:35.931 [info] cwd: .
2025-02-07 08:22:36.384 [info] > conda info --json
2025-02-07 08:22:37.040 [info] Python interpreter path: ./venv/bin/python
2025-02-07 08:22:37.476 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariables.py
2025-02-07 08:22:37.476 [info] shell: bash
2025-02-07 08:22:37.509 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariables.py
2025-02-07 08:22:37.509 [info] shell: bash
2025-02-07 08:22:37.575 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariables.py
2025-02-07 08:22:37.575 [info] shell: bash
2025-02-07 08:22:37.596 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariables.py
2025-02-07 08:22:37.596 [info] shell: bash
2025-02-07 08:22:37.626 [info] > python ~/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariables.py
2025-02-07 08:22:37.626 [info] shell: bash
2025-02-07 08:22:37.682 [info] Setting environment variable PYTHONUNBUFFERED in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-07 08:22:37.682 [info] Setting environment variable VIRTUAL_ENV in collection to /home/jeckst/Code/other-folder/venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-07 08:22:37.682 [info] Setting environment variable PYTHONIOENCODING in collection to utf-8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-07 08:22:37.682 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to (venv) {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-07 08:22:37.682 [info] Prepending environment variable PS1 in collection with (venv) {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-02-07 08:22:37.682 [info] Prepending environment variable PATH in collection with /home/jeckst/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/bash:/home/jeckst/Code/other-folder/venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-07 08:22:37.687 [info] Send text to terminal: python /home/jeckst/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/printEnvVariablesToFile.py /home/jeckst/.vscode/extensions/ms-python.python-2024.22.2-linux-x64/python_files/deactivate/bash/envVars.txt
2025-02-07 08:22:38.145 [info] Native locator: Refresh finished in 6048 ms
2025-02-07 08:22:38.907 [info] Starting Pylance language server.
2025-02-07 09:47:52.874 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-07 09:47:52.874 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-07 09:47:52.874 [info] Experiment 'pythonTestAdapter' is active
2025-02-07 09:47:52.874 [info] Native locator: Refresh started
2025-02-07 09:47:52.874 [info] Native locator: Refresh started
2025-02-07 09:47:52.874 [info] Native locator: Refresh started
2025-02-07 09:47:52.976 [info] > conda info --json
2025-02-07 09:47:53.072 [info] Native locator: Refresh finished in 841 ms
2025-02-07 09:47:53.090 [info] > pyenv which python
2025-02-07 09:47:53.090 [info] cwd: .
2025-02-07 09:47:53.122 [info] Python interpreter path: /bin/python3
2025-02-07 09:47:54.198 [info] Starting Pylance language server.
2025-02-07 09:47:56.607 [info] > . ~/Code/other-folder/venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python_files/printEnvVariables.py
2025-02-07 09:47:56.607 [info] shell: bash
2025-02-07 09:47:56.635 [info] > . ~/Code/other-folder/venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python_files/printEnvVariables.py
2025-02-07 09:47:56.635 [info] shell: bash
2025-02-07 09:48:03.457 [info] > . ~/Code/venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python_files/printEnvVariables.py
2025-02-07 09:48:03.457 [info] shell: bash
2025-02-07 09:48:03.471 [info] > . ~/Code/venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.0.0-linux-x64/python_files/printEnvVariables.py
2025-02-07 09:48:03.471 [info] shell: bash
2025-02-07 11:13:17.613 [info] Native locator: Refresh started
2025-02-07 11:13:17.742 [info] Native locator: Refresh finished in 127 ms |
Applies To
What happened?
While working with a notebook, suddenly there is no kernel to work with, so all variables are lost, as if after kernel restart, and the kernel picker is in the "select kernel" state. In this case it happened between cell executions, while other times I've had this happen during an execution. This has been happening infrequently for some time.
The point at which this happens in the Jupyter Output logs seems to be at 12:25:32.357; the logs were too long for the dedicated form field, so I had to cut out some repetitive cell execution lines from the middle.
It's possible that this issue is somehow connected to #16365. After this issue happens, there are all three options present in the kernel picker, but after selecting "Jupyter kernel" an empty list is presented, which is slightly different behavior than #16365.
The OS is Ubuntu 24.04.1 LTS
VS Code Version
Version: 1.96.2 Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f Date: 2024-12-19T10:22:47.216Z Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Linux x64 6.8.0-51-generic snap
Jupyter Extension Version
2024.11.2024102401
Jupyter logs
Coding Language and Runtime Version
Python 3.12
Language Extension Version (if applicable)
2024.22.2
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: