Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@coderfever
Last active March 28, 2018 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderfever/a634226809a227850966d57712a0ad2a to your computer and use it in GitHub Desktop.
Save coderfever/a634226809a227850966d57712a0ad2a to your computer and use it in GitHub Desktop.
from flask import Flask, flash, redirect, render_template, request, session, abort
from bokeh.embed import server_document
# import bokeh
app = Flask(__name__)
@app.route("/")
def hello():
# script=server_document(model=None,app_path="/bokeh-sliders",url="http://localhost:5006")
script=server_document("http://localhost:5006/bokeh-sliders")
print(script)
return render_template('hello.html',bokS=script)
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment