Bokeh > 2.0.0, embedding a server_document shows blank in flask

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?

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

@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.