btn = widgets.Button(description='Medium')
display(btn)
def btn_eventhandler(obj):
print('Hello from the {} button!'.format(obj.description))
btn.on_click(btn_eventhandler)
When I click on the button, it sends comm message to python side.
Python replies with "stream" message.
As I understand, button widget uses it's model to send comm message.
Model may have more than one view.
So, how does jupyter know which cell should be used to output this stream?
I know that for regular code execution it registers callback and uses "parent" header of reply, and I am sure something similar takes place here, but I don't see any callback registered by view nor by model.
Thank you.
Ilya.