Skip to content

Kernel restarting: The kernel appears to have died. It will restart automatically. #9157

Closed
@BinhKieu82

Description

@BinhKieu82

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Hi Folks,
Whenever I run my .ipynb, the kernel is interrupted at the cell 31. I've tried with many search such as:

uninstall & reinstall 
    ipykernel
    ipython
    jupyter_client
    jupyter_core
    traitlets
    ipython_genutils

conda install ipykernel --update-deps --force-reinstall
python -m pip install traitlets==4.3.3 --force-reinstall
python -m pip install pyzmq==19.0.2 --force-reinstall

...from the following sources: stackoverflow, github, github
But still no hope. I got the same issue with VSCode Jupyter notebook on pure Win10.

Any help please!?
With thanks - BK

VS Code Version

Version: 1.64.2 (user setup) Commit: f80445acd5a3dadef24aa209168452a3d97cc326 Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.18362

Jupyter Extension Version

WSL: Ubuntu-18.04. v2022.1.1301854968, Win10

Jupyter logs

Info 22:18:06: Dispose Kernel process
Error 22:18:06: Raw kernel process exited code: undefined
Error 22:18:06: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
	at t.KernelShellFutureHandler.dispose (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:432353)
	at /home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:307599
	at Map.forEach (<anonymous>)
	at y._clearKernelState (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:307585)
	at y.dispose (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:66:301017)
	at /home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:194444
	at t.swallowExceptions (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:16:2495)
	at dispose (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:51:194423)
	at t.RawSession.dispose (/home/bruce/.vscode-server/extensions/ms-toolsai.jupyter-2022.1.1301854968/out/client/extension.js:113:303296)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)]
Info 22:18:06: Cancel all remaining cells due to dead kernel

Coding Language and Runtime Version

Python 3.9.7

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

conda 4.10.3

Running Jupyter locally or remotely?

Local

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions