-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback/Issues with Kernel Usage #172
Comments
Adding two more issues / feedback for kernel usage:
|
Thanks @nishikantparmariam for reporting. cc @krassowski @echarles who might be more familiar with the kernel usage panel since it comes from https://github.com/Quansight/jupyterlab-kernel-usage |
I see the error in the console (but not the "kernel appears to have died message" - I will keep looking to reproduce it). The problem seems to be that we are sending the first request before the kernel is ready. I will open a PR if I can get this fixed.
PR coming.
The example with infinite loop randomly shows "Kernel usage is not available" or the usage. This is because the jupyter-resource-usage/jupyter_resource_usage/api.py Lines 112 to 115 in 7299c08
Just-merged PR #177 de facto increased the timeout from 1 to 6 seconds so the "not available" message shows up less frequently (because we time out less frequently) but as long as ipykernel import sys
sys.setswitchinterval(0.0000001)
while True:
x = 1
# see that "not available" message (almost) never shows up import sys
sys.setswitchinterval(10)
while True:
x = 1
# see that "not available" always show up Since changing user switch interval is not something we should do, we can instead consider increasing the timeout further. I propose that we:
|
Of note, |
Description
When kernel usage is opened in right panel and
Restart kernel and run all cells
button (>>
) is clicked, Jupyterlab showsThe kernel for ... appears to have died. It will start automatically
and below error is printed into console:And, below is printed on jupyter-server:
By looking at the errors is it possible that it might be happening because we query the channel to get kernel info when it is restarting?
Reproduce
print('Hi')
Restart kernel and run all cells
(>>
) button.The issue is intermittent and is not consistently reproduceble. Doing the last step above multiple times may reproduce the issue.
Expected behavior
The error should not be thrown when right panel is kept open and
Restart kernel and run all cells
button is clicked.Context
The text was updated successfully, but these errors were encountered: