[Python Plotting] Using a click event to open a URL

Hi,

I wonder if there is a way to use the click event functionality in Python to open a URL in a new tab. I did some googling and all the responses are with regard to plotly.js. The closest I have found for Python is this workaround using annotations. It works but Iโ€™m still curious if there is a better way of doing so using click event directly.

Thank you!

Hi @runze,

Hereโ€™s an example of what I think youโ€™re looking for: Hyperlink to markers on map

Hope that helps!
-Jon

Thank you, @jmmease! Your solution in that thread solves my problem completely! :smile:

1 Like