Changing the currently displayed figure with a slider?

Hi,

If the figures are really similar and your slider represents some continuous value, and you just selected some particular points, I’d go with a single figure and a callback on that slider that just changes parameters of a CDSView.

If the figures are really different and the slider represents some very discrete or just different items, I’d go with panels and tabs: Widgets and DOM elements — Bokeh 3.3.2 Documentation

If neither is the case, I guess I’d implement a custom widget based on the existing code for Bokeh slider and tabs that could use panels and would be rendered as a slider.

Regards,

Eugene

···

On Tuesday, October 10, 2017 at 4:30:06 PM UTC+7, R wrote:

Hello,

I was wondering if it’s possible to get a list of figures and instead of displaying them in a row, or in a column, to display just one and switch between them using a slider.

So given a list of figures called grid, display grid[valueOfSlider], then when slider changes update the figure shown.

If anyone had any suggestions on how to achieve this it would be greatly appreciated, thank you.