Show More
@@ -128,7 +128,17 b' class MultiKernelManager(LoggingConfigurable):' | |||||
128 | Should the kernel be shutdown forcibly using a signal. |
|
128 | Should the kernel be shutdown forcibly using a signal. | |
129 | """ |
|
129 | """ | |
130 | self.log.info("Kernel shutdown: %s" % kernel_id) |
|
130 | self.log.info("Kernel shutdown: %s" % kernel_id) | |
131 |
|
|
131 | self.remove_kernel(kernel_id) | |
|
132 | ||||
|
133 | def remove_kernel(self, kernel_id): | |||
|
134 | """remove a kernel from our mapping. | |||
|
135 | ||||
|
136 | Mainly so that a kernel can be removed if it is already dead, | |||
|
137 | without having to call shutdown_kernel. | |||
|
138 | ||||
|
139 | The kernel object is returned. | |||
|
140 | """ | |||
|
141 | return self._kernels.pop(kernel_id) | |||
132 |
|
142 | |||
133 | def shutdown_all(self, now=False): |
|
143 | def shutdown_all(self, now=False): | |
134 | """Shutdown all kernels.""" |
|
144 | """Shutdown all kernels.""" |
General Comments 0
You need to be logged in to leave comments.
Login now