Skip to content

Instantly share code, notes, and snippets.

@cocomoff cocomoff/index.html
Created Aug 26, 2019

Embed
What would you like to do?
bokeh example (index template)
<!DOCTYPE html>
<html>
<head>
<title>Flask Bokeh Sample</title>
{% autoescape False %}
{{ resources }}
{% endautoescape %}
</head>
<body>
<h1>Hello, Bokeh</h1>
<div id="myplot"></div>
<script>
fetch('/plot')
.then(function(res) { return res.json(); })
.then(function(item) { Bokeh.embed.embed_item(item, 'myplot'); })
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.