euporie.core.comm.ipywidgets.open_comm_ipywidgets

euporie.core.comm.ipywidgets.open_comm_ipywidgets(comm_container: KernelTab, comm_id: str, data: dict, buffers: Sequence[bytes]) IpyWidgetComm

Create a new Comm for an ipywidgets widget.

The relevant widget model is selected based on the model name given in the comm_open message data.

Parameters
  • comm_container – The notebook this Comm belongs to

  • comm_id – The ID of the Comm

  • data – The data field from the comm_open message

  • buffers – The buffers field from the comm_open message

Returns

The initialized widget Comm object.