Skip to content

Commit

Permalink
Avoid opening ipywidgets comm twice (#6542)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 22, 2024
1 parent 31ef944 commit 9e03f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/io/ipywidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def _on_widget_constructed(widget, doc=None):
'buffers': buffers,
'metadata': {
'version': __protocol_version__
}
},
'kernel': kernel
}
if widget._model_id is not None:
args['comm_id'] = widget._model_id
Expand Down Expand Up @@ -213,7 +214,6 @@ def register_widget(self, widget):
comm = widget.comm
comm.kernel = self
self.comm_manager.register_comm(comm)
comm.open()

def _wrap_handler(self, msg_type, handler):
doc = self.session._document
Expand Down

0 comments on commit 9e03f4b

Please sign in to comment.