0

We are creating a custom widget for spreadsheets inside the jupyter notebook. We have support for cell references in the spreadsheets. We want to implement a functionality where its possible to reference another sheet cell (cross-sheet referencing). For this, we need the ability to communicate to other custom widget instance using messages and ability to listen for the messages. We want some guidance around it. Which functionality of ipywidget can we use to achieve this? Is it possible to notify another widget instance about an event and send message?

There is not much documentation/guidance for cross widget communication (Link to documentation). I tried looking up and reading the source code of ipywidgets. The custom widget class extends from DOMWidget which extens from Widget class. There is send(self, content, buffers=None) method but this only sends the message to the front-end. There is no API to send the message to a different communication channel of different widget instance.

  • Cross-posted [here](https://discourse.jupyter.org/t/ipywidgets-cross-widget-communication/21132?u=fomightez) with no acknowledgement. Those interested should also check there. – Wayne Aug 28 '23 at 20:51

0 Answers0