If I understand the Bokeh internals correctly the server client syncing is done based when the data of model changes on either side.
Now I’m wondering if this can also be achieved with functions, basically both the Python and JS model would have a function foo()
. Calling it on the Python side would then trigger the counterpart on the JS side. Is something like that supported with current architecture?
There’s not explicit support for remote method invocation. The way folks usually accomplish this is to create DataModel
and then trigger on_change
and/or js_on_change
callbacks by setting properties on an instance of the model.