You can use an ipywidgets.HTML, and set its value to an "<img>"... If the image is not dereferenceable, you can use a data uri.
Another approach is to use ipywidgets.interact, in which you would return a ipython.display.Image, which will handle the data uri stuff for you (might even work above, have tried it).
Bokeh can also embed images, with figure().image, but you may have to do some thinking about how they fit in the scales, etc. The ipywidget interaction requires a bit of work to get right, especially bidirectional, but you will get nice tools for pan and zoom, which might be worth it.
--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/g7GWoIT7CuE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/204952ea-05ef-4179-bfc1-b425c8efe954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Matt,
Hi Matt,I am wondering if you found a solution to get coordinates of mouse click from a click on the image in a widget. If so I would like to hear it!
I am wondering if you found a solution to get coordinates of mouse click from a click on the image in a widget. If so I would like to hear it!
Hi Matt,Thanks,Alex
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/b3494ef5-c00c-4c82-b883-0f1e3ac6193a%40googlegroups.com.