microsoft / microsoft/vscode-python-environments

Python Environments causes invalid "Python 3.14.undefined" kernels and Jupyter hangs on "Connecting to kernel"

オープン
#1,795 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
138
フォーク
62
平均マージ
1日 4時間
マージ済み PR(30日)
35

説明

## 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

1. Install and enable the Python, Jupyter, and Python Environments extensions.
2. Open a `.ipynb` file in VS Code.
3. Open the kernel picker.
4. Observe a detected kernel named similar to `project-name (3.14.x) (Python 3.14.undefined)`.
5. Select that kernel.
6. 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Python、Jupyter、Python Environments 拡張機能を有効にし、記載されている uv 環境セットアップを使用して、VS Code のカーネルピッカーから問題を再現します。Python Environments 拡張機能がカーネルメタデータをどのように報告するか、またピッカーが `Python 3.14.undefined` エントリをどのように処理するかを追跡します。完了条件は、有効な環境に正しいバージョンが表示され、選択したカーネルが接続してノートブックセルを実行できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter, python, typescript, vscode
領域
developer-experience, devtools, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。