☰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

Python gets x_range, y_range in the background at the same time

Community Support
416970882
416970882

I want to provide the source data for the front-end again in Python background according to the changes of front-end x_Range and y_Range.
At present, only one p.x_range.on_change or p.y_range.on_change can call background data rendering

⌁   Link to post
Bryan
Bryan

There are only separate properties, that can be individually watched. There is not currently any “combined” range event.

plot.x_range.on_change('start', callback)
plot.x_range.on_change('end', callback)
plot.y_range.on_change('start', callback)
plot.y_range.on_change('end', callback)

Depending on your needs you may need to implement some form of throttling if you want to prevent the callback work from happening on all four events.

⌁   Link to post

End of archived discussion · Replies are disabled