{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/7573","labels_url":"https://api.github.com/repos/ipython/ipython/issues/7573/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/7573/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/7573/events","html_url":"https://github.com/ipython/ipython/issues/7573","id":55379989,"number":7573,"title":"Display HTML representation even if other representations haven't finished loading.","user":{"login":"theengineear","id":6611546,"avatar_url":"https://avatars.githubusercontent.com/u/6611546?v=3","gravatar_id":"","url":"https://api.github.com/users/theengineear","html_url":"https://github.com/theengineear","followers_url":"https://api.github.com/users/theengineear/followers","following_url":"https://api.github.com/users/theengineear/following{/other_user}","gists_url":"https://api.github.com/users/theengineear/gists{/gist_id}","starred_url":"https://api.github.com/users/theengineear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theengineear/subscriptions","organizations_url":"https://api.github.com/users/theengineear/orgs","repos_url":"https://api.github.com/users/theengineear/repos","events_url":"https://api.github.com/users/theengineear/events{/privacy}","received_events_url":"https://api.github.com/users/theengineear/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipython/ipython/labels/needs-info","name":"needs-info","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-24T18:27:58Z","updated_at":"2015-01-24T20:11:03Z","closed_at":null,"body":"For plotly, we've been returning display objects that define *many* representations that each require a separate request. When the user is online, IPython is always going to select the HTML representation. Is there anyway that this can be displayed immediately (before the other versions are downloaded?). It would seem that if HTML *will* top the other versions and it's already been received, IPython should just display it.\r\n\r\nIs there a current way to do this?"},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/71335122","html_url":"https://github.com/ipython/ipython/issues/7573#issuecomment-71335122","issue_url":"https://api.github.com/repos/ipython/ipython/issues/7573","id":71335122,"user":{"login":"theengineear","id":6611546,"avatar_url":"https://avatars.githubusercontent.com/u/6611546?v=3","gravatar_id":"","url":"https://api.github.com/users/theengineear","html_url":"https://github.com/theengineear","followers_url":"https://api.github.com/users/theengineear/followers","following_url":"https://api.github.com/users/theengineear/following{/other_user}","gists_url":"https://api.github.com/users/theengineear/gists{/gist_id}","starred_url":"https://api.github.com/users/theengineear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theengineear/subscriptions","organizations_url":"https://api.github.com/users/theengineear/orgs","repos_url":"https://api.github.com/users/theengineear/repos","events_url":"https://api.github.com/users/theengineear/events{/privacy}","received_events_url":"https://api.github.com/users/theengineear/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T20:11:03Z","updated_at":"2015-01-24T20:11:03Z","body":"Here's the code for our display object:\r\nhttps://github.com/plotly/python-api/blob/master/plotly/tools.py#L1216-1263\r\n\r\nWhen we return it on calls to make plots, we see the following happen:\r\n\r\n(1) make a request to get the html\r\n(2) wait to receive html\r\n(3) for each static version:\r\n    (a) make a request to get the image\r\n    (b) wait for image to return\r\n(4) display best pick (always html)"}}