Here are the examples of the python api bokeh.io.export.wait_until_render_complete taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Source : chart.py
with Apache License 2.0
from spotify
with Apache License 2.0
from spotify
def _figure_to_svg(self):
"""
Convert the figure to an svg so that it can be saved to a file.
https://github.com/bokeh/bokeh/blob/master/bokeh/io/export.py
"""
driver = self._initialize_webdriver()
html = file_html(self.figure, resources=INLINE, title="")
fp = tempfile.NamedTemporaryFile(
'w', prefix='chartify', suffix='.html', encoding='utf-8')
fp.write(html)
fp.flush()
driver.get("file:///" + fp.name)
wait_until_render_complete(driver, 5)
svgs = driver.execute_script(_SVG_SCRIPT)
fp.close()
driver.quit()
return svgs[0]
def _save_svg(self, svg, filename):