Here are the examples of the python api bokeh.embed.standalone.autoload_static taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Source : test_standalone.py
with MIT License
from rthorst
with MIT License
from rthorst
def test_script_attrs(self, test_plot):
js, tag = bes.autoload_static(test_plot, CDN, "some/path")
html = bs4.BeautifulSoup(tag, "lxml")
scripts = html.findAll(name='script')
assert len(scripts) == 1
attrs = scripts[0].attrs
assert set(attrs) == set(['src', 'id'])
assert attrs['src'] == 'some/path'
class Test_components(object):
0
Source : test_standalone.py
with MIT License
from rthorst
with MIT License
from rthorst
def test_return_type(self, test_plot):
r = bes.autoload_static(test_plot, CDN, "some/path")
assert len(r) == 2
def test_script_attrs(self, test_plot):