[IPython-dev] Drag image onto notebook

Doug Blank doug.blank at gmail.com
Sat Aug 23 13:02:01 EDT 2014


It used to be the case (early IPython 2, I believe) that the attached code
would allow an image to be embedded into a notebook by dragging and
dropping it onto the notebook.

However, now there is a message in the browser console:

HTML Sanitizer img.src removed -> Object

Is there a way to allow this to work?

Also, is there another option to allow local images to be embedded in a
notebook (and won't vanish if one re-executes a cell)?

Thanks for advice,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140823/3b8f2eea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drag-and-drop.js
Type: application/x-javascript
Size: 5833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140823/3b8f2eea/attachment.bin>

More information about the IPython-dev mailing list