-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add autorestart logic to the kernel managers #2873
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
Conversation
It was a property, but it is better suited as a method now. Added tests in both the KM and MKM case.
# This restart event should leave the connection file in place so | ||
# the ports are the same. Because this takes place below the | ||
# MappingKernelManager, the kernel_id will also remain the same. | ||
self.log('KernelRestarter: restarting kernel') |
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.
this probably wants to be self.log.info, not self.log
why is the autorestart only for MKM? That doesn't make sense to me. |
You mean why not put it into the KernelManager itself? Honestly not sure.
But there are reasons to include the logic in KM itself:
Thoughts? It is easy to move this around at this point... On Fri, Feb 1, 2013 at 11:20 AM, Min RK [email protected] wrote:
Brian E. Granger |
Summary of discussion on IRC: restart logic belongs in KM, MKM should remain strictly a multiplexer. eventloop implementation of the restart is up to subclasses (e.g. Qt signal, etc.) |
this is superseded by #3011 |
Currently, when kernels die in the notebook, the user is prompted and asked if they want to restart the kernel. This is problematic from a number of standpoints:
In this PR, I have added a new KernelRestarter object that works alongside a KernelManager object to poll the kernel's subprocess and call KernelManager.restart_kernel if it dies. I am also changing how the user is notified of this event.
Remaining: