Skip to content Skip to sidebar Skip to footer

Layout For Multiple Data Table As Children In Each Bokeh Tab

I want to have several tables inside each Bokeh Tab (Bokeh Panel) However, the tables get attached together horizontally and I don't find a way to nicely show them. I used a dumb

Solution 1:

The width and height are optional args for Div. If you just create a dumbdiv object without these args, you will get a div inserted in-between p1 & p2 without any specific width or height.

dumbdiv = Div()
l1 = layout([[p1, dumbdiv, p2], [p3]], sizing_mode='fixed')

So, now you should see enough space between p1 & p2:

enter image description here

Solution 2:

The problem with Div() is there can be considerable gap between two datatables-much more than needed.I think using Spacer looks better

row2 = row(p1, Spacer(width=600, height=10), p2)
l1 = layout([row2], sizing_mode='fixed')

Post a Comment for "Layout For Multiple Data Table As Children In Each Bokeh Tab"