{"action":"created","issue":{"url":"https://api.github.com/repos/arose/nglview/issues/537","repository_url":"https://api.github.com/repos/arose/nglview","labels_url":"https://api.github.com/repos/arose/nglview/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/arose/nglview/issues/537/comments","events_url":"https://api.github.com/repos/arose/nglview/issues/537/events","html_url":"https://github.com/arose/nglview/issues/537","id":191485947,"number":537,"title":"Representations before viewing are ignored","user":{"login":"stefdoerr","id":7935362,"avatar_url":"https://avatars.githubusercontent.com/u/7935362?v=3","gravatar_id":"","url":"https://api.github.com/users/stefdoerr","html_url":"https://github.com/stefdoerr","followers_url":"https://api.github.com/users/stefdoerr/followers","following_url":"https://api.github.com/users/stefdoerr/following{/other_user}","gists_url":"https://api.github.com/users/stefdoerr/gists{/gist_id}","starred_url":"https://api.github.com/users/stefdoerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefdoerr/subscriptions","organizations_url":"https://api.github.com/users/stefdoerr/orgs","repos_url":"https://api.github.com/users/stefdoerr/repos","events_url":"https://api.github.com/users/stefdoerr/events{/privacy}","received_events_url":"https://api.github.com/users/stefdoerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-24T10:37:19Z","updated_at":"2016-11-24T15:49:43Z","closed_at":null,"body":"in my function I'm doing:\r\n```python\r\ndef foo():\r\n        #code here\r\n        view[0].add_cartoon('protein')\r\n        view[0].add_hyperball(':0')\r\n        return view\r\n```\r\n\r\nThese representations are not shown. \r\n\r\nBut if I do them afterwards, they are shown:\r\n```python\r\nview = foo()\r\nview\r\nview[0].add_cartoon('protein')\r\nview[0].add_hyperball(':0')\r\n```\r\n\r\n```bash\r\n[sdoerr@loro ~]$ python -c 'import nglview; print(nglview.__version__)'\r\n0.6.1\r\n[sdoerr@loro ~]$ python -c 'import ipywidgets; print(ipywidgets.__version__)'\r\n5.2.2\r\n[sdoerr@loro ~]$ python -c 'import traitlets; print(traitlets.__version__)'\r\n4.3.1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/arose/nglview/issues/comments/262805095","html_url":"https://github.com/arose/nglview/issues/537#issuecomment-262805095","issue_url":"https://api.github.com/repos/arose/nglview/issues/537","id":262805095,"user":{"login":"hainm","id":4451957,"avatar_url":"https://avatars.githubusercontent.com/u/4451957?v=3","gravatar_id":"","url":"https://api.github.com/users/hainm","html_url":"https://github.com/hainm","followers_url":"https://api.github.com/users/hainm/followers","following_url":"https://api.github.com/users/hainm/following{/other_user}","gists_url":"https://api.github.com/users/hainm/gists{/gist_id}","starred_url":"https://api.github.com/users/hainm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hainm/subscriptions","organizations_url":"https://api.github.com/users/hainm/orgs","repos_url":"https://api.github.com/users/hainm/repos","events_url":"https://api.github.com/users/hainm/events{/privacy}","received_events_url":"https://api.github.com/users/hainm/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T15:49:43Z","updated_at":"2016-11-24T15:49:43Z","body":"> What makes this random though?\r\n\r\nI don't know."}}
{"actor":{"display_login":"hainm"}}