Embedding is not working on the Flask web app by updating the version

I am using bokeh on the Flask web app. When I update the bokeh version from 1.0.2 to 1.2.0, then it seems that embedding was not working, so all the charts disappeared from the app. Web app is working other than bokeh parts.

I sorted out this problem today. I forgot to update the bokeh version of stylesheet and JavaScript in index.html in the Flask web app.

Of course, this is my bad, but I spent some time to understand what was happened. Therefore I would appreciate if something error message is thrown (I am not sure if it is feasible).

Thanks.

@yukiyoshisato Can you describe the specific updates that you had to make in some detail?

@Bryan When I updated the bokeh version, I only did “pip install bokeh==1.2.0”. However, I should have updated the below part in the index.html in the Flask web app.

https://cdn.pydata.org/bokeh/release/bokeh-1.0.2.min.js
-> “https://cdn.pydata.org/bokeh/release/bokeh-1.2.0.min.js

I forgot to update this part, then all charts disappeared without any error messages.

@yukiyoshisato I see, thank you providing the details. This question has come up on Stack Overflow too. It’s definitely the case that the templated BokehJS resource links need to match the version of Bokeh that generated the JSON to embed.