vscode-jupyter
vscode-jupyter copied to clipboard
Kernel Crash
Applies To
- [x] Notebooks (.ipynb files)
- [x] Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
I have a Notebook that crashes when executed within VS Code either as a notebook or a Cell Script. However, it works just fine as a script or a Notebook ran on Jupyter (launched from the same environment).
This happens on a Linux (Fedora, Red Hat) machine, accessed via SSH. The exact same setup causes no issue on a Windows machine.
The log from the Jupyter extension in VS Code:
11:09:03.917 [info] Restarted 870b1b0b-cd40-477b-816a-5c0263f6441e 11:09:03.975 [debug] Requesting Kernel info 11:09:09.277 [debug] Handle Execution of Cells 0 for ~/.../my_notebook.ipynb 11:09:09.281 [debug] Kernel acknowledged execution of cell 0 @ 1729242549281 11:09:10.498 [debug] KernelProcess Exited 250997, Exit Code - undefined 11:09:10.499 [error] Disposing session as kernel process died ExitCode: undefined, Reason: 11:09:10.499 [debug] Dispose Kernel process 250997. 11:09:10.515 [debug] Disposed Kernel process 250997.
The error message within the Notebook cell's output in VS Code:
The Kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.
VS Code Version
1.94.2
Jupyter Extension Version
v2024.9.1
Jupyter logs
11:09:03.917 [info] Restarted 870b1b0b-cd40-477b-816a-5c0263f6441e 11:09:03.975 [debug] Requesting Kernel info 11:09:09.277 [debug] Handle Execution of Cells 0 for ~/.../my_notebook.ipynb 11:09:09.281 [debug] Kernel acknowledged execution of cell 0 @ 1729242549281 11:09:10.498 [debug] KernelProcess Exited 250997, Exit Code - undefined 11:09:10.499 [error] Disposing session as kernel process died ExitCode: undefined, Reason: 11:09:10.499 [debug] Dispose Kernel process 250997. 11:09:10.515 [debug] Disposed Kernel process 250997.
Coding Language and Runtime Version
Python v.3.9.19
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
None