Corporate policy is not to down load any js files dynamically from outside the firewall. So I would like to inline the bokeh javascript files.
Alternatively, copy over and internally host each new version of the bokeh js files.
Python can fetch the javascript files text using JSResources
But when I try to put the text into a script clause, I can’t figure out a way to quote the text.
I get an python error UnicodeEncodeError( … 6707, 6708, ‘ordinal not in range(128)’
Here is an attempt with no quoting
from bokeh.resources import JSResources
bokeh_js_texts = JSResources(mode="inline").js_raw
bokeh_js_libs = '<script type="text/javascript"> ' + bokeh_js_texts[0] + ' </script>'