microsoft / microsoft/vscode-python-environments
Python Environments causes invalid "Python 3.14.undefined" kernels and Jupyter hangs on "Connecting to kernel"
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 138
- Forks
- 62
- Ø Merge
- 1 T. 4 Std.
- Gemergte PRs (30 T.)
- 35
Beschreibung
Description
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
.ipynbfile 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.undefinedshould 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem über die VS Code-Kernel-Auswahl zu reproduzieren, wobei die Erweiterungen Python, Jupyter und Python Environments aktiviert sind und die aufgeführte uv-Umgebungseinrichtung verwendet wird. Verfolge, wie die Erweiterung Python Environments Kernel-Metadaten meldet und wie die Auswahl den Eintrag Python 3.14.undefined behandelt. Als abgeschlossen gilt die Aufgabe, wenn gültige Umgebungen die korrekte Version anzeigen und ein ausgewählter Kernel eine Notebook-Zelle verbindet und ausführt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter, python, typescript, vscode
- Bereich
- developer-experience, devtools, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100