Here are the examples of the python api bokeh.layouts.grid.children taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
View Source File : test_layouts.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_layout_simple():
p1, p2, p3, p4 = figure(), figure(), figure(), figure()
grid = layout([[p1, p2], [p3, p4]], sizing_mode='fixed')
assert isinstance(grid, Column)
for r in grid.children:
assert isinstance(r, Row)
def test_layout_kwargs():
3
View Source File : test_layouts.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_layout_nested():
p1, p2, p3, p4, p5, p6 = figure(), figure(), figure(), figure(), figure(), figure()
grid = layout([[[p1, p1], [p2, p2]], [[p3, p4], [p5, p6]]], sizing_mode='fixed')
assert isinstance(grid, Column)
for r in grid.children:
assert isinstance(r, Row)
for c in r.children:
assert isinstance(c, Column)
def test_grid():