You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python Environments causes invalid "Python 3.14.undefined" kernels and Jupyter hangs on "Connecting to kernel" #1795
After enabling the Python Environments extension, VS Code's Jupyter kernel picker detects kernels with names similar to:
project-name (3.14.x) (Python 3.14.undefined)
When I select one of these kernels and run a notebook cell, the notebook remains stuck indefinitely at:
Connecting to kernel...
Disabling the Python Environments extension and reloading VS Code resolves the issue. Jupyter notebooks then detect the expected kernels and run normally.
Steps to reproduce
Install and enable the Python, Jupyter, and Python Environments extensions.
Open a .ipynb file in VS Code.
Open the kernel picker.
Observe a detected kernel named similar to project-name (3.14.x) (Python 3.14.undefined).
Select that kernel.
Run any notebook cell.
Actual behavior
The detected kernel name contains Python 3.14.undefined.
The notebook remains stuck at Connecting to kernel....
No cell is executed.
Expected behavior
Python environments should be detected with the correct Python version and kernel metadata.
Selecting a valid environment should start the Jupyter kernel successfully.
Invalid or incomplete kernel entries such as Python 3.14.undefined should not be shown.
Workaround
Disable the Python Environments extension and reload VS Code. Kernel detection and notebook execution then work normally.
Environment
OS: Windows 11 25H2
VS Code version: 1.138.0
Python Environments extension version: 1.36.0
Python extension version: 2026.4.0
Jupyter extension version: 2025.9.1
Python version: 3.14.7
Environment type: uv
Workspace type: local
Additional information
The problem appears only while the Python Environments extension is enabled. Enabling or disabling that extension, without changing the notebook or Python environment, consistently reproduces or resolves the issue.
🤖 Thanks for the detailed report. I looked into how this label is built: Python Environments displays 3.14.x when discovery reports only 3.14 (without a patch version), while Jupyter gets the Python 3.14.undefined portion from the Python extension’s environment metadata. That suggests an incomplete version is reaching the kernel picker, but the label alone does not establish why the kernel remains stuck connecting.
Could you set Developer: Set Log Level to Trace, reload VS Code, reproduce the hang, and share the Python, Python Environments, and Jupyter output channels from that attempt? Please redact any sensitive paths or environment variables. It would also help to know the exact interpreter path shown for the affected kernel, whether that interpreter reports Python 3.14.7 when run directly, and whether ipykernel is installed in that uv environment. The logs should tell us whether version discovery, environment activation, or kernel launch is failing.
Resolution contract: Do not return a discovered environment as though resolution succeeded after its interpreter fails to launch. A partial 3.14 is still valid discovery metadata.
Label and stale entry: Resolve a partial version before publishing it as the interpreter’s runtime version; do not restore a saved interpreter if verification fails.
We have not established that microsoft/vscode-python created the stale entry in its known-environments list, so I would not assign a fix there yet. The Jupyter startup fix would protect against the hang regardless of where that stale entry came from. The available log ends early, so the helper-spawn failure is a code-supported explanation for the hang, not a confirmed observation of the eventual outcome.
Activity
eleanorjboyd commentedon Sep 23, 2026
🤖 Thanks for the detailed report. I looked into how this label is built: Python Environments displays
3.14.xwhen discovery reports only3.14(without a patch version), while Jupyter gets thePython 3.14.undefinedportion from the Python extension’s environment metadata. That suggests an incomplete version is reaching the kernel picker, but the label alone does not establish why the kernel remains stuck connecting.Could you set Developer: Set Log Level to Trace, reload VS Code, reproduce the hang, and share the Python, Python Environments, and Jupyter output channels from that attempt? Please redact any sensitive paths or environment variables. It would also help to know the exact interpreter path shown for the affected kernel, whether that interpreter reports Python 3.14.7 when run directly, and whether
ipykernelis installed in that uv environment. The logs should tell us whether version discovery, environment activation, or kernel launch is failing.lilkui commentedon Sep 24, 2026
Python.log
Python Environments.log
Jupyter.log
Please find the attached logs.
eleanorjboyd commentedon Sep 24, 2026
🤖 We traced the reported symptoms to likely fixes in three repositories:
microsoft/vscode-jupytermicrosoft/python-environment-tools3.14is still valid discovery metadata.microsoft/vscode-python-environmentsWe have not established that
microsoft/vscode-pythoncreated the stale entry in its known-environments list, so I would not assign a fix there yet. The Jupyter startup fix would protect against the hang regardless of where that stale entry came from. The available log ends early, so the helper-spawn failure is a code-supported explanation for the hang, not a confirmed observation of the eventual outcome.