
i try to connect to my bokeh.client how is running to show charts in flask app. But does’t work :
from flask import Flask, render_template
from bokeh.client import pull_session
from bokeh.embed import server_session
app = Flask(__name__)
@app.route('/')
def bkapp_page():
with pull_session(url="http://localhost:5006/bokeh_serv") as session:
# generate a script to load the customized session
script = server_session(session_id=session.id, url='http://localhost:5006/bokeh_serv')
# use the script in the rendered page
return render_template("embed.html", script=script, template="Flask")
if __name__ == '__main__':
app.run(port=8080)
But when i go to http://localhost:8080/ there is nothing (i have charts with http://localhost:5006/bokeh_serv)
Someone have any idea ?
Julien


