-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from posternotebook-executionKernels issues (start/restart/switch/execution, install ipykernel)Kernels issues (start/restart/switch/execution, install ipykernel)
Description
Environment data
- VS Code version: 1.106.3
- Jupyter Extension version (available under the Extensions sidebar): 2025.9.1
- Python Extension version (available under the Extensions sidebar): 2025.18.0
- OS (Windows | Mac | Linux distro) and version: Windows
- Python and/or Anaconda version: python 3.13.9
- Type of virtual environment used: pixi
- Jupyter server running: Local
Expected behaviour
When importing a third-party packages, everything should work properly.
Actual behaviour
When importing the built-in package, the kernel works properly. Once I import a third-party package, the kernel crashes.
Steps to reproduce:
I have a pixi global environment base, and the following is my global environment.
Global environments as specified in 'C:\Users\cheny\.pixi\manifests\pixi-global.toml'
└── base
├─ dependencies: python 3.13.9, matplotlib 3.10.8, altair-all 6.0.0, jupyterlab 4.5.0, plotly 6.5.0, pandas 2.3.3, polars 1.35.2, marimo 0.18.0, openpyxl 3.1.5, streamlit 1.8.0, jupyter 1.1.1, python-kaleido 1.2.0, pip 25.3
└─ exposes: idle, pydoc, python, pythonw, jupyter-lab, jupyter-labextension, jupyter-labhub, jlpm, marimo, streamlit, jupyter, pip, pip3, ipythonIf I start the jupyter lab from terminal and edit it in browser, I can import the installed third-party packages. However, in vscode, when importing a third-party package, the kernel will crash.
Logs
14:24:50.432 [info] Restart requested ~\codes\py\python_notes\pandas\notes.ipynb
14:24:50.434 [warn] Cancel all remaining cells due to dead kernel
14:24:50.494 [error] Failed to get activated conda env vars for ~\.pixi\envs\base\python.exe
in 37ms
14:24:50.496 [error] Unable to determine site packages path for python ~\.pixi\envs\base\python.exe (Conda)
14:24:50.499 [info] Process Execution: ~\.pixi\envs\base\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
14:24:50.504 [info] Process Execution: ~\.pixi\envs\base\python.exe -Xfrozen_modules=off -m ipykernel_launcher --f=~\AppData\Roaming\jupyter\runtime\kernel-v334a645a02345535c3ce0b397a6d0be3c3dd27041.json
> cwd: ~\codes\py\python_notes\pandas
14:24:51.383 [info] Restarted 2af35a85-863a-4dfe-99c6-1cba345e1460
14:28:10.730 [error] Disposing session as kernel process died ExitCode: 3228369023, Reason:
14:28:38.735 [error] Error in notebook cell execution Error: 内核 "base(Pixi) (Python 3.13.9)" 已终止。有关详细信息,请单击[此处](https://aka.ms/vscodeJupyterKernelCrash)。有关更多详细信息,请查看 Jupyter [log](command:jupyter.viewOutput)。
> Kernel Id = .undefined.-xfrozen_modules=off.~\.pixi\bin\python.exe.~\.pixi\envs\base\python.exe.-xfrozen_modules=off#-m#ipykernel_launcher
> Interpreter Id = ~\.pixi\envs\base\python.exe
> at n.verifyKernelState (~\.vscode\extensions\ms-toolsai.jupyter-2025.9.1-win32-x64\dist\extension.node.js:309:81661)
> originalException = undefined
14:28:38.736 [error] Error in execution (get message for cell) Error: 内核 "base(Pixi) (Python 3.13.9)" 已终止。有关详细信息,请单击[此处](https://aka.ms/vscodeJupyterKernelCrash)。有关更多详细信息,请查看 Jupyter [log](command:jupyter.viewOutput)。
> Kernel Id = .undefined.-xfrozen_modules=off.~\.pixi\bin\python.exe.~\.pixi\envs\base\python.exe.-xfrozen_modules=off#-m#ipykernel_launcher
> Interpreter Id = ~\.pixi\envs\base\python.exe
> at n.verifyKernelState (~\.vscode\extensions\ms-toolsai.jupyter-2025.9.1-win32-x64\dist\extension.node.js:309:81661)
> originalException = undefinedkaticyan
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from posternotebook-executionKernels issues (start/restart/switch/execution, install ipykernel)Kernels issues (start/restart/switch/execution, install ipykernel)