mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-24 14:20:54 +08:00
Adding calls to shell_channel.stop() to shutdown.
But this hangs the test suite for IPython.frontend.html.notebook.
This commit is contained in:
parent
afaad23a57
commit
2900b67ff3
@ -106,7 +106,9 @@ class MultiKernelManager(LoggingConfigurable):
|
||||
kernel_id : uuid
|
||||
The id of the kernel to shutdown.
|
||||
"""
|
||||
self.get_kernel(kernel_id).shutdown_kernel()
|
||||
k = self.get_kernel(kernel_id)
|
||||
k.shutdown_kernel()
|
||||
k.shell_channel.stop()
|
||||
del self._kernels[kernel_id]
|
||||
|
||||
def shutdown_all(self):
|
||||
@ -122,7 +124,9 @@ class MultiKernelManager(LoggingConfigurable):
|
||||
kernel_id : uuid
|
||||
The id of the kernel to kill.
|
||||
"""
|
||||
self.get_kernel(kernel_id).kill_kernel()
|
||||
k = self.get_kernel(kernel_id)
|
||||
k.kill_kernel()
|
||||
k.shell_channel.stop()
|
||||
del self._kernels[kernel_id]
|
||||
|
||||
def kill_all(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user