-
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
add kernel_info_timeout traitlet for slow kernel start/restart #3665
Conversation
Now it does this. |
This affects both the MappingKernelManager and the ZMQChannelsHandler(by extension). This allows one setting to apply to both startup andrestarting.
@@ -93,6 +93,22 @@ def _update_root_dir(self, proposal): | |||
no frontends are connected. | |||
""" | |||
) | |||
|
|||
kernel_info_timeout = Float(60, config=True, |
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.
Excellent!
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.
Super fan of this since we've been dealing with slower spark-backed kernels at Netflix.
@Carreau @gnestor @takluyver @minrk Are there any issues with this going forward? |
Great! |
This allows you to configure how long the notebook waits for a kernel give its
kernel_info_reply
.I looked into adding a test, but I think that this would require a good bit of machinery to test properly. I can do that if we want to, but it looks like we're not testing the functionality of most other traitlets directly.
Note: this is not kernel specific… but I don't think we have any way to do kernel specific configuration for the handler as of today.