mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Merge pull request #6908 from minrk/del-comm-id
handle setting Widget.comm = None
This commit is contained in:
commit
aaf660d204
@ -175,7 +175,8 @@ class Widget(LoggingConfigurable):
|
||||
|
||||
def _comm_changed(self, name, new):
|
||||
"""Called when the comm is changed."""
|
||||
self.comm = new
|
||||
if new is None:
|
||||
return
|
||||
self._model_id = self.model_id
|
||||
|
||||
self.comm.on_msg(self._handle_msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user