I am relatively new to both Bokeh/Python and HTML. I have created a served-based Bokeh plot which I want to display on a webpage. I have been following the instructions at https://bokeh.pydata.org/en/latest/docs/user_guide/embed.html. In particular, I am using autoload_server to generate a script. However, when I place the script tag in the head of the HTML document (which is apparently correct, according to the last line at the above link):
The following error message appears on the webpage:
Error rendering Bokeh model: element with id ‘6abffe3c-d0dc-4e7b-80d3-0e7dc2d1b100’ must be under
So then I remove the script from the head and place it in the body. But this results in a completely blank webpage; the plot doesn’t render at all.
Any help is greatly appreciated!