Checking if pan tool is picked by user

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



You can check the active property in JavaScript callbacks.

See this topic on GitHub.

Or this related topic on Bokeh Discourse

as starting points or inspiration depending on your use case.