Get signals from modebar click in plotly.py

I’m trying to get some signal whenever zoom is clicked on plotly’s modebar. Is there any way to do so?
The question is regarding this problem: