Show More
@@ -102,7 +102,6 class Widget(LoggingConfigurable): | |||||
102 | to use to represent the widget.""", sync=True) |
|
102 | to use to represent the widget.""", sync=True) | |
103 | _comm = Instance('IPython.kernel.comm.Comm') |
|
103 | _comm = Instance('IPython.kernel.comm.Comm') | |
104 |
|
104 | |||
105 | closed = Bool(False) |
|
|||
106 | msg_throttle = Int(3, sync=True, help="""Maximum number of msgs the |
|
105 | msg_throttle = Int(3, sync=True, help="""Maximum number of msgs the | |
107 | front-end can send before receiving an idle msg from the back-end.""") |
|
106 | front-end can send before receiving an idle msg from the back-end.""") | |
108 |
|
107 | |||
@@ -163,7 +162,6 class Widget(LoggingConfigurable): | |||||
163 | """Private close - cleanup objects, registry entries""" |
|
162 | """Private close - cleanup objects, registry entries""" | |
164 | del Widget.widgets[self.model_id] |
|
163 | del Widget.widgets[self.model_id] | |
165 | self._comm = None |
|
164 | self._comm = None | |
166 | self.closed = True |
|
|||
167 |
|
165 | |||
168 | def close(self): |
|
166 | def close(self): | |
169 | """Close method. |
|
167 | """Close method. | |
@@ -171,7 +169,7 class Widget(LoggingConfigurable): | |||||
171 | Closes the widget which closes the underlying comm. |
|
169 | Closes the widget which closes the underlying comm. | |
172 | When the comm is closed, all of the widget views are automatically |
|
170 | When the comm is closed, all of the widget views are automatically | |
173 | removed from the front-end.""" |
|
171 | removed from the front-end.""" | |
174 |
if not |
|
172 | if self._comm is not None: | |
175 | self._comm.close() |
|
173 | self._comm.close() | |
176 | self._close() |
|
174 | self._close() | |
177 |
|
175 |
General Comments 0
You need to be logged in to leave comments.
Login now