0

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?

1 Answer 1

1

I don't think you'll be able to use the same code that you used before in a webpage, but using a library like bokeh and the hover tool would make it fairly easy to get a similar behaviour

http://docs.bokeh.org/en/latest/docs/user_guide/tools.html#hovertool

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.