{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/jupyterlab/issues/424","repository_url":"https://api.github.com/repos/jupyter/jupyterlab","labels_url":"https://api.github.com/repos/jupyter/jupyterlab/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyterlab/issues/424/comments","events_url":"https://api.github.com/repos/jupyter/jupyterlab/issues/424/events","html_url":"https://github.com/jupyter/jupyterlab/pull/424","id":165943650,"number":424,"title":"Dragging OutputAreaWidget produces new OutputAreaWidget mirroring same model","user":{"login":"danielballan","id":2279598,"avatar_url":"https://avatars.githubusercontent.com/u/2279598?v=3","gravatar_id":"","url":"https://api.github.com/users/danielballan","html_url":"https://github.com/danielballan","followers_url":"https://api.github.com/users/danielballan/followers","following_url":"https://api.github.com/users/danielballan/following{/other_user}","gists_url":"https://api.github.com/users/danielballan/gists{/gist_id}","starred_url":"https://api.github.com/users/danielballan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielballan/subscriptions","organizations_url":"https://api.github.com/users/danielballan/orgs","repos_url":"https://api.github.com/users/danielballan/repos","events_url":"https://api.github.com/users/danielballan/events{/privacy}","received_events_url":"https://api.github.com/users/danielballan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-16T19:20:27Z","updated_at":"2016-07-17T21:43:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/jupyterlab/pulls/424","html_url":"https://github.com/jupyter/jupyterlab/pull/424","diff_url":"https://github.com/jupyter/jupyterlab/pull/424.diff","patch_url":"https://github.com/jupyter/jupyterlab/pull/424.patch"},"body":"Drag-and-drop any notebook output areas to generate a new stand-alone widget that mirrors that output area.\r\n\r\nThanks for the hand, @sccolbert."},"comment":{"url":"https://api.github.com/repos/jupyter/jupyterlab/issues/comments/233205956","html_url":"https://github.com/jupyter/jupyterlab/pull/424#issuecomment-233205956","issue_url":"https://api.github.com/repos/jupyter/jupyterlab/issues/424","id":233205956,"user":{"login":"danielballan","id":2279598,"avatar_url":"https://avatars.githubusercontent.com/u/2279598?v=3","gravatar_id":"","url":"https://api.github.com/users/danielballan","html_url":"https://github.com/danielballan","followers_url":"https://api.github.com/users/danielballan/followers","following_url":"https://api.github.com/users/danielballan/following{/other_user}","gists_url":"https://api.github.com/users/danielballan/gists{/gist_id}","starred_url":"https://api.github.com/users/danielballan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielballan/subscriptions","organizations_url":"https://api.github.com/users/danielballan/orgs","repos_url":"https://api.github.com/users/danielballan/repos","events_url":"https://api.github.com/users/danielballan/events{/privacy}","received_events_url":"https://api.github.com/users/danielballan/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T21:43:36Z","updated_at":"2016-07-17T21:43:36Z","body":"Sure. This recording demonstrates two things that work and two things that don't.\r\n\r\nGood:\r\n1. Dragging from the left-side \"gutter\" of an output area generates a \"mirrored\" copy that watches the same model.\r\n2. Dragging from anywhere else in the main output area now does nothing, which avoids interfering with IPython widgets or other interactive elements there.\r\n\r\nBad:\r\n3. Deleting a cell leaves any extant mirror widget(s) blank.\r\n4. IPython widgets do not appear in mirror widgets.\r\n\r\n![demo-424-1](https://cloud.githubusercontent.com/assets/2279598/16903180/7443cb02-4c3c-11e6-8daa-a3a83207b8d0.gif)\r\n\r\nAddressing (3), I wrote (unpushed) code in line with @jasongrout's suggestion above. When an OutputAreaModel is disposed, a new Signal will cause the corresponding OutputAreaWidget to be disposed. But I'm not sure what signal to watch to get this process started. Contrary to my expectation, deleting a cell does not seem to dispose that cell's OutputAreaModel.\r\n\r\nI don't know where to start with (4). Is the problem obvious to anyone?"}}
{"actor":{"display_login":"danielballan"}}