I have been running bokeh server and having flask display the bokeh apps on the same machine (vm) for a while. This is my script inside flask per bokeh documentation :
script = server_document(url="http://www.mysite.com/apps/app1", arguments={'user': user_name, 'project':project})
return render_template("page.html", user_name=user_name, project=projectj, script=script, template="Flask")
Since upgrading to bokeh 2.2.3, the flask page is drawing up blank as it seems it is unable to call or embed the bokeh app.
I tried to downgrade the bokeh version to 2.0.0 and it works again! Here are the other versions of interest:
Python 3.7.6
Flask 1.1.2
Anybody else having the same issue?
Bryan
February 20, 2021, 10:26pm
2
Are there any errors reported in the browser JS console? Also please always apply code formatting, either with the </>
icon on the editing toolbar, or triple backtick ``` fences around the code blocks.
sorry for missing the code formatting in a hurry.
I did check with firebug just now. it seems to be related to panel
failed to load http://localhost/apps/static/extensions/panel/panel.min.js
I will try to post my issue in the panel discourse.
1 Like
_jm
February 21, 2021, 1:24am
4
@kmallick2000
See this topic on Panel Discourse. I believe it should be fixed in the latest version of panel if it is the same issue youβre experiencing.
I previously developed an application that embeds a panel server in Flask running via gunicorn that uses panel 0.9.7. After upgrading to panel 0.10.2, in order to incorporate new features, e.g. a panel Card layout, things no longer work. The symptom...
Reading time: 2 mins π
Likes: 11 β€