From 1bbc915ac0b0ff6b24d7655c9d48dfdd3392ffd0 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Wed, 30 Jul 2014 23:16:24 -0400 Subject: [PATCH] setting _comm to None --- IPython/html/widgets/widget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 3a72d0de1..745e7d60f 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -167,6 +167,7 @@ class Widget(LoggingConfigurable): del Widget.widgets[self.model_id] if self._comm is not None: self._comm.close() + self._comm = None def send_state(self, key=None): """Sends the widget state, or a piece of it, to the front-end.