Bokeh resize - plot overshadows widgets

In a simple bokeh slider.py demo, you can use the resize tool to enlarge the graph.

If you increase the width, however, the plot first uses the space occupied by the slider widgets, and then begins to expand to the right:

enter image description here

Is there a way to prevent this behavior?

Widgets are in VBoxForm , and I assume that the problem lies (t) here:

 inputs = VBoxForm(children=[text, offset, amplitude, phase, freq]) curdoc().add_root(HBox(children=[inputs, plot], width=800)) 

How can I make bokeh preserve the size of the widget, or, alternatively, left-align the graph (so that I can increase the size of the container without changing the original view)?

+5
source share
1 answer

Starting with Bokeh 0.12.9 , the ResizeTool element ResizeTool been removed (after the previous deprecation period). Thus, this situation is no longer possible in this sense.

0
source

Source: https://habr.com/ru/post/1247009/


All Articles