Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid opening ipywidgets comm twice #6542

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading