Checking if pan tool is picked by user

Hi,
how can I check with code if pan tool is picked by user?
or
how can I determine which tool is activated by user ?

regards

@ahmettemiz88

You can check the active property in JavaScript callbacks.

See this topic on GitHub.

Or this related topic on Bokeh Discourse

https://discourse.bokeh.org/t/javascript-callback-for-a-change-of-active-tool-e-g-rangetool-in-the-plot-toolbar/5804/7

as starting points or inspiration depending on your use case.