bokeh responsive row with items of unequal width

久未见 提交于 2019-12-02 02:36:31

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!