☰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

Constrain gridplot to the available viewport?

Community Support
Mulan-94
Mulan-94

Hi all,

Is it possible to constrain bokeh gridplot to the browser viewport without any overflow such that the size of the plots in the grid change dynamically depending on the number of items in the grid. i.e. if the grid is 2 x 2, large plots appear and if 8 x 8 for example, the plot size reduces but still fit “exactly” in the viewport ?
I tried setting the sizing_mode argument but to no avail.

Thanks

⌁   Link to post
Bryan
Bryan

Hi, in order to effectively help, some basic information is really always necessary:

  • version of bokeh and any other relevant packages
  • example code, ideally a minimal complete example that reproduces whatever you are asking about
⌁   Link to post

End of archived discussion · Replies are disabled