{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/2098","repository_url":"https://api.github.com/repos/jupyter-widgets/ipywidgets","labels_url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/2098/labels{/name}","comments_url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/2098/comments","events_url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/2098/events","html_url":"https://github.com/jupyter-widgets/ipywidgets/issues/2098","id":331404214,"node_id":"MDU6SXNzdWUzMzE0MDQyMTQ=","number":2098,"title":"widget lifecycle methods / accessing the div after it has been mounted","user":{"login":"chriddyp","id":1280389,"node_id":"MDQ6VXNlcjEyODAzODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1280389?v=4","gravatar_id":"","url":"https://api.github.com/users/chriddyp","html_url":"https://github.com/chriddyp","followers_url":"https://api.github.com/users/chriddyp/followers","following_url":"https://api.github.com/users/chriddyp/following{/other_user}","gists_url":"https://api.github.com/users/chriddyp/gists{/gist_id}","starred_url":"https://api.github.com/users/chriddyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriddyp/subscriptions","organizations_url":"https://api.github.com/users/chriddyp/orgs","repos_url":"https://api.github.com/users/chriddyp/repos","events_url":"https://api.github.com/users/chriddyp/events{/privacy}","received_events_url":"https://api.github.com/users/chriddyp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T01:23:04Z","updated_at":"2018-06-12T13:20:42Z","closed_at":null,"author_association":"NONE","body":"👋 hello from plotly! we're working on the next version of the Plotly Jupyter widget in https://github.com/plotly/plotly.py/pull/942\r\n\r\nThere are some methods in our JS library that require a mounted/attached `div` (e.g. to know the _size_ of the mounted `div`). However, in the widgets `render` method, we only have access to the unmounted/unattached `div`.\r\n\r\nAre there any component lifecycle methods or events that we can utilize to customize the behaviour of the widget _after_ it has been mounted on the DOM? To start, we would use this behaviour to either resize our plot to fill the container or defer making the plot until the `div` has been attached.\r\n\r\nMany thanks!\r\n\r\n(cc @jmmease)"},"comment":{"url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/comments/396586492","html_url":"https://github.com/jupyter-widgets/ipywidgets/issues/2098#issuecomment-396586492","issue_url":"https://api.github.com/repos/jupyter-widgets/ipywidgets/issues/2098","id":396586492,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjU4NjQ5Mg==","user":{"login":"SylvainCorlay","id":2397974,"node_id":"MDQ6VXNlcjIzOTc5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2397974?v=4","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T13:20:42Z","updated_at":"2018-06-12T13:20:42Z","author_association":"MEMBER","body":"> Are these phosphorjs events available in both the classic notebook and JupyterLab?\r\n\r\nThe ones around the creation and destruction of the widgets are.\r\n\r\nWhat you get in JLab which is not in the classic notebook is that the resizing of any tab of the dock area triggers a phosphor resize events to children that were resized."}}
{"actor":{"display_login":"SylvainCorlay"}}