microsoft / microsoft/vscode-python-environments
Python Environments causes invalid "Python 3.14.undefined" kernels and Jupyter hangs on "Connecting to kernel"
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 138
- Fork
- 62
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 35
Mô tả
## 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề thông qua trình chọn kernel của VS Code, với các extension Python, Jupyter và Python Environments được bật, sử dụng thiết lập môi trường uv được liệt kê. Theo dõi cách extension Python Environments báo cáo siêu dữ liệu kernel và cách trình chọn xử lý mục `Python 3.14.undefined`. Hoàn thành khi các môi trường hợp lệ hiển thị đúng phiên bản và một kernel được chọn có thể kết nối và thực thi một ô notebook.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- jupyter, python, typescript, vscode
- Lĩnh vực
- developer-experience, devtools, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100