``
I’m embedding a Bokeh application in a web page, using the autoload_server(…) method outlined at: http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#autoloading
After overcoming a mountain of issues, I seem to have come down to just one last obstacle. When the script returned by autoload_server(…) runs, I get repeated JavaScript console messages of the form:
Bokeh: BokehJS not loaded, scheduling load and callback
``
followed by attempts to inject references to various bokeh .js resources of the form:
https://127.0.0.1:443/static/js/bokeh.min.js?v=9d3af13f493d36073a89714f6a5240c6
``
https://127.0.0.1:443/static/js/bokeh-widgets.min.js?v=1af1302b8bd7fcc88c7bcafb8771497b
``
Now, if this worked, it wouldn’t be a (big) issue, but in fact those resources are not present at the location specified on my web server, so naturally all these injections fail.
Nor do I see why it is making these attempted injections in the first place, because in fact BokehJS is available to the web page in which the script returned by autoload_server(…) is embedded, via these declarations:
<link href="https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.css" rel="stylesheet" type="text/css">
<link href="https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.css" rel="stylesheet" type="text/css">
<script src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.js"></script>
<script src="https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.js"></script>
``
or so I’m led to believe by the documentation at the link in the first sentence of this post.
So, why doesn’t the script returned by autoload_server(…) recognize that BokehJS is in fact installed, and skip trying to load it?
Or, if BokehJS isn’t in fact installed, despite the links and scripts I put in , why not? And how else can I preload BokehJS to avoid code injection?
Carl