
Hi,
this is maybe not possible, bokeh is not fully bidirectional (?), but is there a way to perform a software trigger from python side to trigger the js callback ?
For instance with a Toggle, the python callback is called but not the js callback:
bb = Toggle()
bb.js_on_change(‘active’,CustomJS(code=""“console.log(‘clicked’);”""))
def bb_cb(attr,old,new): print(‘bb cb called’,attr,old,new)
bb.on_change(‘active’,bb_cb)
bb.active=True
I tried also update & trigger methods on bb. Not really knowing what i’m doing…no success
thx

