Debugging stuck kernels #6733
-
What would be the best way to debug a misbehaving kernel (ipykernel). Sometimes Kernel dies and sometimes it does not start and is stuck in the starting phase. I did not find any user interface-facing way to diagnose what could be wrong with the kernel. I have also not seen any diagnosing/debugging options with any other Jupyter implementations. Running
|
Beta Was this translation helpful? Give feedback.
Answered by
williamstein
May 22, 2023
Replies: 1 comment 1 reply
-
I usually try in a terminal: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's exactly what I do first as well. It's not 100%, but it helps with any generic problems that would impact all Jupyter clients.
If it's something fairly cocalc specific, enabling this DEBUG flag can be helpful:
https://github.com/sagemathinc/cocalc/blob/master/src/packages/jupyter/kernel/kernel.ts#L27
Note that I just massively refactored the Jupyter code in cocalc during the last week, so if you don't build a new image you might not see packages/jupyter. This is in master now though.