I have a simple matplotlib scatter plot which uses this code to display an annotation when points are clicked on. I need to embed this in a webpage. How should I do this?
I found similar questions here as well but couldn't quite understand the answers. If someone could explain it a bit clearly in detail please?
Edit: I need to do something like this, with the interactive scatter plot being displayed in the webpage. However, on looking at the source code of the webpage, it did not look like the python code is being called.
How do I do something similar?