☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

OnReset event doesn't seem to happen every time reset button is pressed?

Community Support
jcarson
jcarson

I’m trying to use the OnReset event to know when the user has pressed the reset button on the plot. If they do, I want to double-check that there isn’t new data in the database and possibly update the plot with that new data.

Unfortunately, OnReset only seems to arrive when the reset button also causes the plot contents to recenter itself.

Is that the expected behavior? Is there way to know when the reset button was pressed even if the bokeh library didn’t need to do anything with that button press?

⌁   Link to post
jcarson
jcarson

I am trying to make a reproducible test case, but it seems to be some sort of interaction between my app, panel, and the panel Bokeh wrapper object.

A pure-bokeh program seems to give me my events, and a very simple panel app does as well.

But in my more-complicated app, when I swap out the bokeh object inside the Bokeh pane, some of the python event handlers aren’t called.

What is a DataModel? Is that like passing in ColumnDataSource as an argument to the JS callback?

⌁   Link to post

End of archived discussion · Replies are disabled