☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

How to trigger custom JS without invoking it on objects?

Community Supportbrowserserverbokeh
criscola
criscola

Hello, I would like to trigger some custom JS without invoking it on an object. I only found the js_on_change method but I don’t want to create an object for nothing, as my custom JS is not dependent on a widget event/widget itself. Is there any way to accomplish that? Thanks!

⌁   Link to post
Bryan
Bryan

There is not. A generic “RPC” mechanism has been proposed in the past, but it’s a slippery slope to a lot of complexity and no one has ever decided to work on it seriously. Turning Bokeh into a full-blown ORB is probably just out of scope. So you will need an object of some sort, to trigger a change or event callback on. Subclassing a DataModel in recent versions of Bokeh is a good option for this.

⌁   Link to post

End of archived discussion · Replies are disabled