From 861a481f2996e05f410b60dddd45850fc4990dca Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Fri, 15 Jul 2011 11:05:48 -0700 Subject: [PATCH] Actually kill old kernels upon restart. --- IPython/frontend/html/notebook/notebookapp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index 1c45c2f2e..caf3a383a 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -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