Hi,
We use autoload_server to embed a bokeh server app in a Flask app.
It was working in 0.11.1 but it doesn’t render properly in 0.12.0.
I made a very simple example to reproduce the problem:
app.py
from flask import Flask, render_template
from bokeh.embed import autoload_server
app = Flask(name)
@app.route(’/’)
def index():
script = autoload_server(model=None, app_path="/sliders")
return render_template(‘index.html’, bokeh_script=script)
``
templates/index.html
Bokeh app test
``
I use the sliders.py example from bokeh/examples/app:
bokeh serve --host localhost:5000 --host localhost:5006 sliders.py
``
It renders fine with bokeh 0.11.1 but not in 0.12.0. See screenshots below.
Note that when going directly to localhost:5006/sliders, the sliders app looks fine.
Is there something specific to do in 0.12.0 to embed an app?
Thanks
Benjamin



