When trying to run jupyter notebooks or python scripts in interactive windows in my remote visual studio code, I always get the same error : Failed to start the Kernel. The kernel died.
Here's the jupyter log :
Visual Studio Code (1.101.2, ssh-remote, desktop)
Jupyter Extension Version: 2025.6.0.
Python Extension Version: 2025.8.1.
Python Environment Extension not installed.
Pylance Extension Version: 2025.6.2.
Platform: linux (x64).
Home = /obs/username
Temp Storage folder ~/.vscode-server/data/User/globalStorage/ms-toolsai.jupyter/version-2025.6.0
Workspace folder /johannes/orage/username
12:33:07.422 [info] Starting Kernel (Python Path: ~/.conda/envs/lico_beorn2/bin/python, Conda, 3.13.5) for '/johannes/orage/<username>/these/licorice/lico_beorn/simu16000.ipynb' (disableUI=true)
12:33:13.227 [info] Process Execution: ~/.conda/envs/lico_beorn2/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
12:33:13.243 [info] Process Execution: ~/.conda/envs/lico_beorn2/bin/python -m ipykernel_launcher --f=/run/user/1772/jupyter/runtime/kernel-v387e4965414a0d37bbb577e6d7fe314354f4ec60a.json
> cwd: /johannes/orage/<username>/these/licorice/lico_beorn
12:33:13.262 [info] Process Execution: ~/.conda/envs/lico_beorn2/bin/python -m pip list
12:33:38.105 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd098e624189647e64da77283c5cf979bca5c39a2f5dedfdb150d6c15ee8d5758f7./johannes2/orage/<username>/.venv/python./johannes2/orage/<username>/.venv/python.-m#ipykernel_launcher' for view = 'jupyter-notebook'
12:33:38.106 [warn] Disposing old controller startUsingPythonInterpreter:'.jvsc74a57bd098e624189647e64da77283c5cf979bca5c39a2f5dedfdb150d6c15ee8d5758f7./johannes2/orage/<username>/.venv/python./johannes2/orage/<username>/.venv/python.-m#ipykernel_launcher (Interactive)' for view = 'interactive'
12:33:38.108 [warn] The following kernels use interpreters that are no longer valid or not recognized by Python extension, Kernels startUsingPythonInterpreter:'id=.jvsc74a57bd098e624189647e64da77283c5cf979bca5c39a2f5dedfdb150d6c15ee8d5758f7./johannes2/orage/<username>/.venv/python./johannes2/orage/<username>/.venv/python.-m#ipykernel_launcher'(interpreterId='/johannes2/orage/<username>/.venv/bin/python') and valid interpreter ids include /johannes/orage/<username>/.venv/bin/python, /shared/apps/anaconda/3.9/bin/python, ~/.conda/envs/lico_beorn2/bin/python, ~/.conda/envs/conda-21cm-env2/bin/python, ~/.conda/envs/lico_beorn/bin/python, ~/.conda/envs/conda-21cm-env/bin/python, /usr/bin/python2.7, /usr/bin/python3
12:34:14.140 [error] Failed to request kernel info Canceled: Canceled
at ud.value (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:181:28934)
at D.B (file://~/.vscode-server/bin/2901c5ac6db8a986a5666c3af51ff804d05af0d4/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
at D.fire (file://~/.vscode-server/bin/2901c5ac6db8a986a5666c3af51ff804d05af0d4/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
at hd.cancel (file://~/.vscode-server/bin/2901c5ac6db8a986a5666c3af51ff804d05af0d4/out/vs/workbench/api/node/extensionHostProcess.js:27:5107)
at Ke.cancel (file://~/.vscode-server/bin/2901c5ac6db8a986a5666c3af51ff804d05af0d4/out/vs/workbench/api/node/extensionHostProcess.js:27:5518)
at Timeout._onTimeout (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:11834)
at listOnTimeout (node:internal/timers:588:17)
at processTimers (node:internal/timers:523:7)
12:34:14.155 [warn] Failed to shutdown kernel, .jvsc74a57bd0e4f142c8266e28d595c83f711b684bd0263c61a70288d740f270c0fd91de6e79.~/.conda/envs/lico_beorn2/python.~/.conda/envs/lico_beorn2/python.-m#ipykernel_launcher TypeError: Failed to parse URL from /api/kernels/0edea15c-a2fd-4837-b849-c2f209ef732e?1752143654154
at new Request (node:internal/deps/undici/undici:9588:19)
at Object.t [as handleRequest] (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/node_modules/@jupyterlab/services/lib/kernel/default/index.js:11:2049)
... 9 lines matching cause stack trace ...
at Function.wrapKernelMethodImpl (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:84404) {
[cause]: TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at new Request (node:internal/deps/undici/undici:9586:25)
at Object.t [as handleRequest] (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/node_modules/@jupyterlab/services/lib/kernel/default/index.js:11:2049)
at Object.t [as makeRequest] (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/node_modules/@jupyterlab/services/lib/kernel/default/index.js:11:490)
at Object.kf [as shutdownKernel] (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/node_modules/@jupyterlab/services/lib/kernel/default/index.js:11:44304)
at n.shutdown (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/node_modules/@jupyterlab/services/lib/kernel/default/index.js:17:53495)
at F_.start (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:12421)
at L_.startKernel (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:21713)
at lb.create (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:23961)
at r_.createJupyterSession (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:282:37381)
at r_.startJupyterSession (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:282:35033)
at r_.start (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:282:31079)
at Function.wrapKernelMethodImpl (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:84404) {
code: 'ERR_INVALID_URL',
input: '/api/kernels/0edea15c-a2fd-4837-b849-c2f209ef732e?1752143654154'
}
}
12:34:14.189 [error] Disposing session as kernel process died ExitCode: undefined, Reason: undefined
12:34:14.334 [error] Failed to connect raw kernel session: Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
12:34:14.337 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0e4f142c8266e28d595c83f711b684bd0263c61a70288d740f270c0fd91de6e79.~/.conda/envs/lico_beorn2/python.~/.conda/envs/lico_beorn2/python.-m#ipykernel_launcher
> Interpreter Id = ~/.conda/envs/lico_beorn2/bin/python
> at F_.<anonymous> (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:11729)
> stdErr =
12:34:14.338 [warn] Kernel Error, context = start Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0e4f142c8266e28d595c83f711b684bd0263c61a70288d740f270c0fd91de6e79.~/.conda/envs/lico_beorn2/python.~/.conda/envs/lico_beorn2/python.-m#ipykernel_launcher
> Interpreter Id = ~/.conda/envs/lico_beorn2/bin/python
> at F_.<anonymous> (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:11729)
> stdErr =
12:34:14.357 [info] Process Execution: ~/.conda/envs/lico_beorn2/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
12:34:14.706 [info] Dispose Kernel '/johannes/orage/<username>/these/licorice/lico_beorn/simu16000.ipynb' associated with '/johannes/orage/<username>/these/licorice/lico_beorn/simu16000.ipynb'
12:34:14.708 [error] Error in notebook cell execution Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0e4f142c8266e28d595c83f711b684bd0263c61a70288d740f270c0fd91de6e79.~/.conda/envs/lico_beorn2/python.~/.conda/envs/lico_beorn2/python.-m#ipykernel_launcher
> Interpreter Id = ~/.conda/envs/lico_beorn2/bin/python
> at F_.<anonymous> (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:11729)
> stdErr =
12:34:14.710 [error] Error in execution (get message for cell) Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0e4f142c8266e28d595c83f711b684bd0263c61a70288d740f270c0fd91de6e79.~/.conda/envs/lico_beorn2/python.~/.conda/envs/lico_beorn2/python.-m#ipykernel_launcher
> Interpreter Id = ~/.conda/envs/lico_beorn2/bin/python
> at F_.<anonymous> (~/.vscode-server/extensions/ms-toolsai.jupyter-2025.6.0/dist/extension.node.js:309:11729)
> stdErr =
12:34:14.722 [info] Process Execution: ~/.conda/envs/lico_beorn2/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
It was all working fine until two days ago, so I suspected an update broke everything. I've tried using different versions of the jupyter and python extensions, different versions of python/different kernels, and different versions of vscode. The error stays the same, except when using 'old' versions of the jupyter extension (<2024.3), in which case the extension fails to start.
Any help would be appreciated.