{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/2236","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/2236/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/2236/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/2236/events","html_url":"https://github.com/jupyter/notebook/issues/2236","id":210708233,"number":2236,"title":"Provide a file download button","user":{"login":"dov","id":338235,"avatar_url":"https://avatars.githubusercontent.com/u/338235?v=3","gravatar_id":"","url":"https://api.github.com/users/dov","html_url":"https://github.com/dov","followers_url":"https://api.github.com/users/dov/followers","following_url":"https://api.github.com/users/dov/following{/other_user}","gists_url":"https://api.github.com/users/dov/gists{/gist_id}","starred_url":"https://api.github.com/users/dov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dov/subscriptions","organizations_url":"https://api.github.com/users/dov/orgs","repos_url":"https://api.github.com/users/dov/repos","events_url":"https://api.github.com/users/dov/events{/privacy}","received_events_url":"https://api.github.com/users/dov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-28T07:30:25Z","updated_at":"2017-02-28T14:01:47Z","closed_at":null,"body":"Currently there is  `IPython.display.Image` that embeds an image in the html output. I suggest that a similar widget be provided called `IPython.display.downloadbutton(filename)` (or something similar) that shows a button for downloading a file. \r\n\r\nA use case of this functionality is if pandas created a data frame that should be provided to the user for downloading. The user could then do:\r\n\r\n    df.to_csv(filename)\r\n    IPython.display.downloadbutton(filename)\r\n\r\nThis may of course be wrapped in some syntactic sugar for shorter access."},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/283046438","html_url":"https://github.com/jupyter/notebook/issues/2236#issuecomment-283046438","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/2236","id":283046438,"user":{"login":"dov","id":338235,"avatar_url":"https://avatars.githubusercontent.com/u/338235?v=3","gravatar_id":"","url":"https://api.github.com/users/dov","html_url":"https://github.com/dov","followers_url":"https://api.github.com/users/dov/followers","following_url":"https://api.github.com/users/dov/following{/other_user}","gists_url":"https://api.github.com/users/dov/gists{/gist_id}","starred_url":"https://api.github.com/users/dov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dov/subscriptions","organizations_url":"https://api.github.com/users/dov/orgs","repos_url":"https://api.github.com/users/dov/repos","events_url":"https://api.github.com/users/dov/events{/privacy}","received_events_url":"https://api.github.com/users/dov/received_events","type":"User","site_admin":false},"created_at":"2017-02-28T14:01:47Z","updated_at":"2017-02-28T14:01:47Z","body":"Thanks! I missed that. It really provides the functionality that I was looking for.\r\n\r\nOf course, it would imo be a nice syntactic sugar to provide a button for downloading the file instead of the right clicking on the file link, but that is a minor issue."}}
{"actor":{"display_login":"dov"}}