Saving and loading HTML layout settings

Greetings!

I produce an interactive plot layouts in HTML files using Bokeh, for example:

Is there a way to save user customizations (zoom, slider positions, etc.) made in the HTML file and re-load them in future?

Thank you.

I’ve implemented something like this for Standalone html.

I wrote CustomJS that would export current settings (i dumped it out as a readable csv so users could edit them outside the app too). You could make some kind of JSON/xml type output too.

Then I used a FileInput widget with another callback attached that would parse the inputted csv input and update the app to the desired state (i.e. for yours it’d be setting all the slider values).

1 Like

(post deleted by author)

Can you share a sample snippet, please?