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


#1

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!


#2

Hi @runze,

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

Hope that helps!
-Jon


#3

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