Is it possible to invoke a python callback when clicking on a CustomAction tool?

I added a custom tool to my plot using CustomAction. Now I want to invoke a callback on the python side when it’s being clicked. Is it possible?

Not directly. You could indirectly by configuring a DataModel (or any model really) in the args for the CustomAction and then update some property on that model that has an on_change handler hooked up.

@Bryan Cool, I’ll give it a try. Thanks!