If you’re using plotly.express you can use the line_close=True parameter, otherwise you’ll have to manually duplicate the first point at the end of your series.
For a “popup” you will have to use annotations and shapes: https://plotly.com/python/text-and-annotations/ and https://plotly.com/python/shapes/