I've successfully embedded the html where a popup appears with a text that one clicks and redirects to desired webpage with a jpg.
I want the popup to open the link automatically though. I don't want to click to be redirected to a new page to see the image. Below is my code:
for lt,ln,nm in zip(lat,lon,name):
pp= folium.Html('<a href="'+str(nm)+' "target="_blank">'+ 'popup text' + '</a>', script=True)
iframe = branca.element.IFrame(pp, width=430, height=420)
popup = folium.Popup(iframe, max_width=2650, parse_html=True)
folium.Marker(location=[lt,ln], popup=popup).add_to(map)