Say that there is a ipywidget created in IPython notebook, like so:
from ipywidgets import widgets
i = widgets.IntText()
Is there a way to set the value from Javascript? I suspect that I'll need to know some comm id of the widget. Or is there a better way to have a variable in Python that gets set from Javascript?
The use case is that I want to send a mouse click position (gotten via Javascript) position back to Python.