You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metakernel creates a new CommManager which is incompatible with jupyter widgets where a global singleton CommManager is used. In addition, the comm channel name was changed from ipython.widget to jupyter.widget and jupyter.widget.control was added.
The correct comm registration (based on IPythonKernel) is:
self.comm_manager=comm.get_comm_manager() # Do not create a new comm manager, the rest of the system uses a singletoncomm_msg_types= ["comm_open", "comm_msg", "comm_close"]
formsg_typeincomm_msg_types:
self.shell_handlers[msg_type] =getattr(self.comm_manager, msg_type)
importipywidgetsaswidgetswidgets.register_comm_target() # Does the registration on behalf of ipywidgets
I'll see if I'll have time for a pull request :)
The text was updated successfully, but these errors were encountered:
Metakernel creates a new
CommManager
which is incompatible with jupyter widgets where a global singletonCommManager
is used. In addition, the comm channel name was changed fromipython.widget
tojupyter.widget
andjupyter.widget.control
was added.https://github.com/Calysto/metakernel/blob/main/metakernel/_metakernel.py#L155
The correct comm registration (based on IPythonKernel) is:
I'll see if I'll have time for a pull request :)
The text was updated successfully, but these errors were encountered: