Jupyter kernel startup delayed 30s+ with pixi environment on WSL2 (continuation of locked #1407)
@eleanorjboyd がすでに取り組んでいます。
2026年8月5日 から。
評価
この issue はまだ評価されていません。
説明
Opening this as a new issue since #1407 ("Jupyter kernel startup delayed 30s when extension is installed (pixi environment)") is locked and can no longer receive comments, despite being closed only due to staleness rather than resolution — multiple users in that thread confirmed the bug persisted across many extension versions right up until the lock. I'm hitting the identical issue on a platform not yet represented there (WSL2; prior reports were macOS/Windows), so filing this to keep it tracked.
Environment:
- VS Code: 1.130.0 (WSL, desktop)
ms-python.python: 2026.4.0ms-python.vscode-python-envs: 1.36.0ms-toolsai.jupyter: 2025.9.1- Platform: linux x64 (WSL2)
- Package manager: pixi
Symptoms match #1407 exactly:
10:04:29.821 [warn] Failed to get activated env vars for ~/project/.pixi/envs/default/bin/python in 35151ms
In my case it compounds further — the kernel gets disposed and reselected between different interpreters multiple times in a row (seemingly automatic, not user-initiated), and each reselection re-triggers the same ~30-35s stall, making it look like an indefinite hang rather than a one-time delay. The Python Environments output channel shows the same conda-detection fallback (pet_conda::package: Unable to find conda package Python in ".../pixi/envs/default", trying slower approach) re-firing repeatedly against the identical path over the course of hours in a single session — I have logs showing the same non-conda path being re-probed via this fallback continuously from session start to +17,800 seconds later, rather than the negative result being cached after the first check.
I confirmed this isn't pixi/shell being slow — pixi shell-hook for the same environment completes in under a second when run directly. This lines up with the root cause identified by @korsbakken in #1407: the underlying command uses pixi shell (which starts an interactive shell that never returns on its own) rather than pixi run, so the &&-chained follow-up commands never execute and the whole thing stalls until timeout.
Workaround (confirmed by multiple users in #1407): setting "python.useEnvironmentsExtension": false, or disabling ms-python.vscode-python-envs entirely.
Related: microsoft/vscode-python-environments#1407, renan-r-santos/pixi-code#21, renan-r-santos/pixi-code#28, renan-r-santos/pixi-code#43
- 主要言語
- TypeScript
- スター
- 140
- フォーク
- 63
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 35
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-python-environments のほかの issue
-
microsoft/vscode-python-environments#1799 · 担当者 1 名 ·
-
microsoft/vscode-python-environments#1796 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
triage-needed
microsoft/vscode-python-environments#1791 · リアクション 1 件 · 担当者 2 名 ·
-
triage-needed
難易度 4/5 3〜5日 初心者へのやさしさ 74/100
microsoft/vscode-python-environments#1779 · コメント 1 件 · リアクション 1 件 ·
microsoft/vscode-python-environments の issue をすべて見る
似ている issue
-
Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenNSW/nsw-srilanka#497 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
digidem/comapeo-cloud-app#403 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100