{"action":"opened","number":621,"pull_request":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/621","id":48129233,"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","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/621","number":621,"state":"open","locked":false,"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},"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\">","created_at":"2015-10-19T21:30:43Z","updated_at":"2015-10-19T21:30:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter/notebook/pulls/621/commits","review_comments_url":"https://api.github.com/repos/jupyter/notebook/pulls/621/comments","review_comment_url":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/621/comments","statuses_url":"https://api.github.com/repos/jupyter/notebook/statuses/32aba864bfa9e419e91573c6bfbd801cb0d5e2f9","head":{"label":"julienr:inline_images","ref":"inline_images","sha":"32aba864bfa9e419e91573c6bfbd801cb0d5e2f9","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},"repo":{"id":43298097,"name":"notebook","full_name":"julienr/notebook","owner":{"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},"private":false,"html_url":"https://github.com/julienr/notebook","description":"Jupyter Interactive Notebook","fork":true,"url":"https://api.github.com/repos/julienr/notebook","forks_url":"https://api.github.com/repos/julienr/notebook/forks","keys_url":"https://api.github.com/repos/julienr/notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julienr/notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julienr/notebook/teams","hooks_url":"https://api.github.com/repos/julienr/notebook/hooks","issue_events_url":"https://api.github.com/repos/julienr/notebook/issues/events{/number}","events_url":"https://api.github.com/repos/julienr/notebook/events","assignees_url":"https://api.github.com/repos/julienr/notebook/assignees{/user}","branches_url":"https://api.github.com/repos/julienr/notebook/branches{/branch}","tags_url":"https://api.github.com/repos/julienr/notebook/tags","blobs_url":"https://api.github.com/repos/julienr/notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julienr/notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julienr/notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/julienr/notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julienr/notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/julienr/notebook/languages","stargazers_url":"https://api.github.com/repos/julienr/notebook/stargazers","contributors_url":"https://api.github.com/repos/julienr/notebook/contributors","subscribers_url":"https://api.github.com/repos/julienr/notebook/subscribers","subscription_url":"https://api.github.com/repos/julienr/notebook/subscription","commits_url":"https://api.github.com/repos/julienr/notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/julienr/notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/julienr/notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/julienr/notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/julienr/notebook/contents/{+path}","compare_url":"https://api.github.com/repos/julienr/notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julienr/notebook/merges","archive_url":"https://api.github.com/repos/julienr/notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julienr/notebook/downloads","issues_url":"https://api.github.com/repos/julienr/notebook/issues{/number}","pulls_url":"https://api.github.com/repos/julienr/notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/julienr/notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/julienr/notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julienr/notebook/labels{/name}","releases_url":"https://api.github.com/repos/julienr/notebook/releases{/id}","created_at":"2015-09-28T11:54:03Z","updated_at":"2015-09-28T11:54:06Z","pushed_at":"2015-10-19T21:13:05Z","git_url":"git://github.com/julienr/notebook.git","ssh_url":"git@github.com:julienr/notebook.git","clone_url":"https://github.com/julienr/notebook.git","svn_url":"https://github.com/julienr/notebook","homepage":"http://jupyter-notebook.readthedocs.org/","size":13941,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jupyter:master","ref":"master","sha":"3c31700fb8680d42f8b34a9fef43b7730bb19ee7","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":33653601,"name":"notebook","full_name":"jupyter/notebook","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/notebook","description":"Jupyter Interactive Notebook","fork":false,"url":"https://api.github.com/repos/jupyter/notebook","forks_url":"https://api.github.com/repos/jupyter/notebook/forks","keys_url":"https://api.github.com/repos/jupyter/notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/notebook/teams","hooks_url":"https://api.github.com/repos/jupyter/notebook/hooks","issue_events_url":"https://api.github.com/repos/jupyter/notebook/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/notebook/events","assignees_url":"https://api.github.com/repos/jupyter/notebook/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/notebook/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/notebook/tags","blobs_url":"https://api.github.com/repos/jupyter/notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/notebook/languages","stargazers_url":"https://api.github.com/repos/jupyter/notebook/stargazers","contributors_url":"https://api.github.com/repos/jupyter/notebook/contributors","subscribers_url":"https://api.github.com/repos/jupyter/notebook/subscribers","subscription_url":"https://api.github.com/repos/jupyter/notebook/subscription","commits_url":"https://api.github.com/repos/jupyter/notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/notebook/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/notebook/merges","archive_url":"https://api.github.com/repos/jupyter/notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/notebook/downloads","issues_url":"https://api.github.com/repos/jupyter/notebook/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/notebook/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/notebook/releases{/id}","created_at":"2015-04-09T06:58:03Z","updated_at":"2015-10-19T11:50:06Z","pushed_at":"2015-10-19T20:04:03Z","git_url":"git://github.com/jupyter/notebook.git","ssh_url":"git@github.com:jupyter/notebook.git","clone_url":"https://github.com/jupyter/notebook.git","svn_url":"https://github.com/jupyter/notebook","homepage":"http://jupyter-notebook.readthedocs.org/","size":23442,"stargazers_count":427,"watchers_count":427,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":118,"forks":133,"open_issues":118,"watchers":427,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/621"},"html":{"href":"https://github.com/jupyter/notebook/pull/621"},"issue":{"href":"https://api.github.com/repos/jupyter/notebook/issues/621"},"comments":{"href":"https://api.github.com/repos/jupyter/notebook/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/notebook/statuses/32aba864bfa9e419e91573c6bfbd801cb0d5e2f9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":59,"deletions":0,"changed_files":2}}