bokeh responsive row with items of unequal width

后端 未结 1 974
囚心锁ツ
囚心锁ツ 2021-01-23 05:54

I\'m trying to create a responsive row in bokeh 0.12.3 that contains a figure and a widgetbox, where the widgetbox has a much smaller width than the figure.

I\'m able to

相关标签:
1条回答
  • 2021-01-23 06:42

    As of Bokeh 0.12.3 equal-sizes for children is the only available option for the built-in Bokeh layouts such as row, etc. However, you could possibly embed the different children into your own HTML template, using the bokeh.embed functions, which would give you finer control over things.

    For instance, if you call:

    components((s1, widgetbox))
    

    Then you will get back a tuple:

    (script, (s1_div, widgetbox_div)) 
    

    You can template the <script> and the two <div>s into an HTML template. The components will show up wherever you insert the <div>s.

    0 讨论(0)
提交回复
热议问题