Hi,
The web app is running, but I get this error in the terminal. What can I do to fix it? (see snippet of code below.
Index page
@app.route(’/’, methods = [‘GET’])
def bkapp_page():
# Determine the selected feature
current_feature_name = request.args.get(“feature_name”)
if current_feature_name == None:
current_feature_name = “Test1”
# Create the plot
plot1 = makeTracerFigure(current_feature_name)
plot = row(plot1, width = 800)
# Embed plot into HTML via Flask Render
script, div = components(plot)
animationPlotter = server_document(‘http://localhost:5006/animationPlotter’)
return render_template(“homepage.html”,
script = script, div = div,
animationPlotter = animationPlotter,
featurenames = featurenames, current_feature_name = current_feature_name)
def bk_worker():
server = Server({’/animationPlotter’: animationPlotter}, io_loop = IOLoop(), allow_websocket_origin = [“localhost:8000”])
server.start()
server.io_loop.start()
from threading import Thread
Thread(target = bk_worker).start()
if name == ‘main’:
print(‘Opening single process Flask app with embedded Bokeh application on http://localhost:8000/’)
app.debug = True
app.run(port = 8000)
``