Skip to content
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

MappingKernelManager.start_kernel should use kernel_id for new kernel if it doesn't exist #403

Closed
vidartf opened this issue Feb 4, 2021 · 1 comment · Fixed by #511
Closed

Comments

@vidartf
Copy link
Member

vidartf commented Feb 4, 2021

The docstring of MappingKernelManager.start_kernel says:

kernel_id : uuid
The uuid to associate the new kernel with. If this
is not None, this kernel will be persistent whenever it is
requested.

But if the kernel id doesn't currently exist, it throws an error:

self._check_kernel_id(kernel_id)

So, the method should probably be changed to reflect the docstring (which is consistent with the behavior in jupyter client).

@kevin-bates
Copy link
Member

Boy, this has been this way for years, but, yeah, it looks like the if kernel_id is None: should be extended with or kernel_id not in self and reflected in the args of the call to the subclass.

Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants