☰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

How to resize a bokeh plot created from flask app?

Community Support
Bryan
Bryan

That’s a pretty vague request that could cover at least a few different scenarios I can imagine. Can you be more specific about exactly what it is you are trying to accomplish?

⌁   Link to post
PBrockmann
PBrockmann

Hi,
You are right Bryan. Sorry about that lack of description of what I would like to code.

So using the Flask framework, I would like to produce a bokeh plot that is resizable.
Note that I have been able to code this using BokehJS but this time I would like to have this behavior from a flask app.

Reading the issue [BokehJS] Add change event to figure object · Issue #7132 · bokeh/bokeh · GitHub and bokeh.embed — Bokeh 2.4.2 Documentation, I have this code :

I don’t understand how to get the figure_view to be used with resize_layout() ?

⌁   Link to post
Bryan
Bryan

@PBrockmann no confusion, there’s just more messages and correspondence than I can personally always keep up with. But that said, offhand I don’t know the answer. The layout system, and especially directly interacting with it from JS, is not my area of expertise. I would recommend trying to ping Mateusz to this topic, in the issue you linked.

⌁   Link to post

End of archived discussion · Replies are disabled