☰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

Running customJS on init

Community Supportbokehjs
bokehcoder
bokehcoder

Hi, I am able to make a callback function which gets triggered on a buttonclick like this:

export_button = Button(label="Export slope file")
export_button.js_on_event(events.ButtonClick, export_func)

This is great, however I need the js function to trigger automatically when bokeh initializes. Is that possible somehow?

⌁   Link to post
bokehcoder
bokehcoder

Essentially what i just need to be able to do is to trigger a callback from outside bokeh (in react)… so what i wanted was to save some callback in the window object as soon as possible, which i can then trigger from a react button

⌁   Link to post

End of archived discussion · Replies are disabled