Coupling Hover Events

Hello,
I want to couple the hover events of two graphs that are plotted side by side, as shown in the following javascript example:
https://codepen.io/duyentnguyen/pen/LRVbyY
Is it possible to migrate this behavior to python? (Jupyter notebook)

Thanks