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
Bokeh: BokehJS not loaded, scheduling load and callback
followed by attempts to inject references to various bokeh .js resources of the form:
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?