mercury icon indicating copy to clipboard operation
mercury copied to clipboard

How to implement notifications of Mercury widgets ?

Open virtuamechanica opened this issue 1 year ago • 1 comments

I did not see in the doc how to implement events/notifs on widgets such as sliders, toggle buttons, etc. Thank you

virtuamechanica avatar Jan 04 '25 08:01 virtuamechanica

Hi @virtuamechanica,

You don't need to implement events. Mercury is detecting change in the widget and automatically re-executes cells below the widget. Please notice, that automatic re-execution is available only when you serve notebook as web app.

May I ask what are you building?

pplonski avatar Jan 04 '25 09:01 pplonski