In later versions of bokeh, yes, you can do it (easily).
charts and layouts now have the sizing_mode property, which is set to fixed by default. Other values include scale_width , scale_height and scale_both .
import bokeh.plotting import bokeh.layouts fig1 = bokeh.plotting.figure() fig1.sizing_mode = 'scale_width' fig2 = bokeh.plotting.figure() fig2.sizing_mode = 'scale_width' column = bokeh.layouts.column([fig1, fig2]) column.sizing_mode = 'scale_width'
As in the example above, your layout must have the corresponding sizing_mode attribute sizing_mode that its detailed graphs expand.
Using the example above, your plot will expand to the size of its container. It is up to you to appropriately determine the size of the container (using CSS) according to your needs.
Note that the width / height property of your figures / plots still matters: they determine the ratio at which the bokeh layout is scaled.
Bryce guinta
source share