First, thanks so much for the hard work put into improving bokeh! I was struggling when I initially used it (I think around 0.10), but I recently returned to it and I am
having an overall great experience now (both with the cleaner api and
improved docs)! Thank you!
I am currently trying to figure out how to change the height of widgets. I can
resize the width of a widget, such as a Toogle button, by simply including the
from bokeh.io import show from bokeh.layouts import widgetbox from bokeh.models.widgets import Toggle toggle = Toggle(label="Foo", button_type="success", width=500) show(widgetbox(toggle))
Unintuitively, trying the use the
height parameter to change the height of
the widget, does not have the same effect (at least not visually). Instead of
resizing the toggle button, the surrounding box is resized (can be seen while
inspecting or because other UI elements in layouts are pushed downwards).
Initially, I thought this was an issue with the resizing policy of the toggle
button, preventing it from expanding into the surrounding area, but when
I tried changing it to either ‘stretch_both’, ‘scale_height’, or ‘fixed’,
there was no change (I specified it in both the call to Toggle and widgetbox).
Maybe I am missing something obvious here, but how am I supposed to change the
height of widgets in general (For MultiSelect there is the convenient
method, but it does not generalize)? Do I need to use custom css or is
there another way?