Here are the examples of the python api bokeh.io.export.get_layout_html taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
3
View Source File : test_export.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_get_layout_html_resets_plot_dims():
initial_height, initial_width = 200, 250
layout = Plot(x_range=Range1d(), y_range=Range1d(),
plot_height=initial_height, plot_width=initial_width)
bie.get_layout_html(layout, height=100, width=100)
assert layout.plot_height == initial_height
assert layout.plot_width == initial_width
def test_layout_html_on_child_first():
3
View Source File : test_export.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_layout_html_on_child_first():
p = Plot(x_range=Range1d(), y_range=Range1d())
bie.get_layout_html(p, height=100, width=100)
layout = row(p)
bie.get_layout_html(layout)
def test_layout_html_on_parent_first():
3
View Source File : test_export.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_layout_html_on_parent_first():
p = Plot(x_range=Range1d(), y_range=Range1d())
layout = row(p)
bie.get_layout_html(layout)
bie.get_layout_html(p, height=100, width=100)
#-----------------------------------------------------------------------------
# Private API
#-----------------------------------------------------------------------------
@patch('PIL.Image.Image')