☰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

Simulate an event

Community Support
Sebastien_Roche
Sebastien_Roche

Is there a way to simulate an event ?

For example if I had a Button() and Select() widgets:

button=Button()
select=Select()

button.callack = CustomJS(args=stuff,code=button_stuff)

def callback(attr,old,new):
# click the button

select.on_change(‘value’, callback)

``

what should I write in place of ‘# click the button’ ?

⌁   Link to post
Sebastien_Roche
Sebastien_Roche

Just wanted to add that I am really asking from the python callback side of things. I know I could do it with a js callback like that:

select.callback = CustomJS(code=“document.getElementsByTagName(‘button’)[0].click();”)

``

⌁   Link to post

End of archived discussion · Replies are disabled