Hi there,
I’ve spent some time digging through bokeh’s server (and some tornado code) to actually understand what’s going on there. (I had mediocre success)
Your way (appending to _js_components and _static_hashes) would require copying my js-files into the bokeh/server/static/js if I’m not mistaken?
I managed to mount the js (in a probably very weird way) by editing bokeh.embed.bundle:
1.
extension_dirs: Dict[str, str] = {'jquery': 'c:\\path\\to\\folder\\containing\\jquery'}
- at the end of the
_bundle_extensions-method
bundles.insert(0, ExtensionEmbed('c:\\path\\to\\folder\\containing\\jquery\\jquery.js',
'static/extensions/jquery/jquery.js', None))
This solution doesn’t require moving any files around but it really seems like it is less than suboptimal. I’ll continue digging around, especially since I have no clue how to embed css with my method.