{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/621","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/621/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/621/events","html_url":"https://github.com/jupyter/notebook/pull/621","id":112237287,"number":621,"title":"[WIP] Implement markdown cell attachments. Allow drag’n’drop of images into…","user":{"login":"julienr","id":506602,"avatar_url":"https://avatars.githubusercontent.com/u/506602?v=3","gravatar_id":"","url":"https://api.github.com/users/julienr","html_url":"https://github.com/julienr","followers_url":"https://api.github.com/users/julienr/followers","following_url":"https://api.github.com/users/julienr/following{/other_user}","gists_url":"https://api.github.com/users/julienr/gists{/gist_id}","starred_url":"https://api.github.com/users/julienr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienr/subscriptions","organizations_url":"https://api.github.com/users/julienr/orgs","repos_url":"https://api.github.com/users/julienr/repos","events_url":"https://api.github.com/users/julienr/events{/privacy}","received_events_url":"https://api.github.com/users/julienr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T21:30:43Z","updated_at":"2015-10-19T23:06:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/621","html_url":"https://github.com/jupyter/notebook/pull/621","diff_url":"https://github.com/jupyter/notebook/pull/621.diff","patch_url":"https://github.com/jupyter/notebook/pull/621.patch"},"body":"This adds a way for users to insert inline images in markdown cells using drag and drop\r\n\r\nThis is an experimental implementation of what was discussed in #613 by @ellisonbg and @stevengj .\r\nWhen a user drag and drops an image into a markdown cell, the image data is stored in the cell metadata and can be used as the source for an image by using a special 'nbdata:filename' syntax.\r\n\r\nHere are some things to discuss to move forward :\r\n- It should be possible to insert inline images without drag'n'drop. Add a menu item ?\r\n- There should be a UI so the user can easily see which cells have 'attachments' and a way to manage them.\r\n\r\nScreenshots\r\n-----------------\r\nJust after the drop of an image :\r\n<img width=\"962\" alt=\"1_source\" src=\"https://cloud.githubusercontent.com/assets/506602/10591903/14d49614-76b9-11e5-90a9-0246972bb274.png\">\r\n\r\nThe metadata :\r\n<img width=\"689\" alt=\"2_metadata\" src=\"https://cloud.githubusercontent.com/assets/506602/10591919/26d009ac-76b9-11e5-9ff4-3a3f475b6970.png\">\r\n\r\nThe rendered cell\r\n<img width=\"819\" alt=\"3_rendered\" src=\"https://cloud.githubusercontent.com/assets/506602/10591925/2c245d86-76b9-11e5-9829-e0bf966659c8.png\">"},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/149372208","html_url":"https://github.com/jupyter/notebook/pull/621#issuecomment-149372208","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/621","id":149372208,"user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T23:06:22Z","updated_at":"2015-10-19T23:06:22Z","body":"This is awesome!  Great work!\r\n\r\n> Shouldn't it use markdown image syntax rather than <img ../>?\r\n\r\n+1\r\n\r\n> Would be good to support pasted images as well as drag-and-drop, and a menu item to insert an image from a file-picker menu.\r\n\r\n+2\r\n\r\n> Maybe it should use the notebook's generic \"mime bundle\" format, i.e. \"test.png\" : { \"image/png\" : [\"base64-encoded-png-data\"] }\r\n\r\nIt's not clear to me how this would work- where would the mime bundle be stored in the document and how would it be referenced inline in the markdown?"}}