Actually kill old kernels upon restart.

Brian E. Granger 15 years ago
parent ed3a348817
commit 861a481f29

@ -142,7 +142,8 @@ class NotebookWebApplication(web.Application):
# TODO: This causes a hard crash in ZMQStream.close, which sets
# self.socket to None to hastily. We will need to fix this in PyZMQ
# itself. For now, we just leave the old kernel running :(
# self.kill_kernel(kernel_id)
# Maybe this is fixed now, but nothing was changed really.
self.kill_kernel(kernel_id)
self.log.debug("Kernel restarted: %s -> %s" % (kernel_id, new_kernel_id))
return new_kernel_id

Loading…
Cancel
Save