I want to take action when a session is idle for 20mins. How can I track this?
Hi,
did you already came across these documentation sites?
I haven’t used it before but maybe it helps.
Best regards
Thanks for sharing, I checked them out but how can I know that the state of the session hasn’t been busy for 20minutes?
Perhaps you can use periodic as a timer and increment every second, and if no params change (or if pn.state.param.busy is always False) within 20 mins, perform action, but if params change, you can reset the timer.
I’m onto something. How can I force a button widget to click programmatically?
button.param.trigger("clicks")
Hi, I don’t think it’s working because upon having the periodic_callback called, it is making the template’s spinner to load again in the background. What do you think of another approach?
Maybe param.discard_events
potentially?
How do I use that? is there a documentation for it or an example to rely on?