-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Prevent missing IOPub upon restart #5904
Conversation
c892dc7
to
f3f3a78
Compare
@@ -310,37 +310,62 @@ async def restart_kernel(self, kernel_id, now=False): | |||
await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) | |||
kernel = self.get_kernel(kernel_id) | |||
# return a Future that will resolve when the kernel has successfully restarted | |||
channel = kernel.connect_shell() | |||
shell_channel = kernel.connect_shell() | |||
iopub_channel = kernel.connect_iopub() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really, we should use the iopub channel from zmqhandler.channels
, which we don't have access to here.
f3f3a78
to
2e2fc54
Compare
Hi Sylvain - thanks for submitting this pull request. Using these changes, I am unable to complete a general restart of the kernel. The state stays at I also notice that I've left a similar comment on the jupyter-server PR as well (once the method name is changed). |
I'm sorry. It just dawned on me that this PR requires jupyter/jupyter_client#593, so please disregard the restart failure behavior. I'll need to pull that PR as well. |
2e2fc54
to
b604303
Compare
Closing. This is not the way to go. We need to do this in |
Upon restart, nedge the kernel with info requests until we get something on IOPub, to ensure it is properly connected.
CF jupyter/jupyter_client#593