Using a url javascript library in CustomJs

What is the way of using a url javascript library in CustomJs ?
I want to use a websocket lib (


I’m pretty sure the only feasible way is to set the library up and create some global objects that you can use to access it in a custom HTML template that you say Bokeh to use via e.g. the save function.

1 Like

Agree with @p-himik I think the only way is to load the libraries via script tags and access them globally. Our first primary use-case for CustomJS was dead simple for users inexperienced with JS, just code snippets that interact with BokehJS obejcts and APIs. But perhaps now that Bokeh’s own compiler/bundler for extensions is more sophisticated, it could be made available somehow to CustomJS.

1 Like