{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipykernel/issues/113","repository_url":"https://api.github.com/repos/ipython/ipykernel","labels_url":"https://api.github.com/repos/ipython/ipykernel/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipykernel/issues/113/comments","events_url":"https://api.github.com/repos/ipython/ipykernel/issues/113/events","html_url":"https://github.com/ipython/ipykernel/issues/113","id":143279011,"number":113,"title":"New hook point for messages / message transforms.","user":{"login":"dwillmer","id":2343358,"avatar_url":"https://avatars.githubusercontent.com/u/2343358?v=3","gravatar_id":"","url":"https://api.github.com/users/dwillmer","html_url":"https://github.com/dwillmer","followers_url":"https://api.github.com/users/dwillmer/followers","following_url":"https://api.github.com/users/dwillmer/following{/other_user}","gists_url":"https://api.github.com/users/dwillmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dwillmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwillmer/subscriptions","organizations_url":"https://api.github.com/users/dwillmer/orgs","repos_url":"https://api.github.com/users/dwillmer/repos","events_url":"https://api.github.com/users/dwillmer/events{/privacy}","received_events_url":"https://api.github.com/users/dwillmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-24T15:34:06Z","updated_at":"2016-04-07T16:49:02Z","closed_at":null,"body":"We intend to make a new hook point to allow the installation of hooks on the display publisher.\r\n\r\nCurrent thoughts (largely from @minrk + @jasongrout):\r\n\r\n- Update ZMQDisplayPublisher to do a 2-stage message build.\r\n- Pass the message to the transform(s), which return a message or None.\r\n- If a message is returned, `send` it in the usual manner.\r\n\r\nThis will require:\r\n\r\n- Changing the display publisher to have a new method for registering a hook.\r\n- Changes to iostream / ipywidgets / other related repos."},"comment":{"url":"https://api.github.com/repos/ipython/ipykernel/issues/comments/206989318","html_url":"https://github.com/ipython/ipykernel/issues/113#issuecomment-206989318","issue_url":"https://api.github.com/repos/ipython/ipykernel/issues/113","id":206989318,"user":{"login":"jasongrout","id":192614,"avatar_url":"https://avatars.githubusercontent.com/u/192614?v=3","gravatar_id":"","url":"https://api.github.com/users/jasongrout","html_url":"https://github.com/jasongrout","followers_url":"https://api.github.com/users/jasongrout/followers","following_url":"https://api.github.com/users/jasongrout/following{/other_user}","gists_url":"https://api.github.com/users/jasongrout/gists{/gist_id}","starred_url":"https://api.github.com/users/jasongrout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasongrout/subscriptions","organizations_url":"https://api.github.com/users/jasongrout/orgs","repos_url":"https://api.github.com/users/jasongrout/repos","events_url":"https://api.github.com/users/jasongrout/events{/privacy}","received_events_url":"https://api.github.com/users/jasongrout/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T16:49:02Z","updated_at":"2016-04-07T16:49:02Z","body":"Yep, that's the idea. Thanks!\r\n\r\nThings to still do:\r\n- hook into the stdout/stderr (we also want to capture stdout). We have to write these extension points as well.\r\n- make sure a clear_output() message clears the messages\r\n\r\nAnd when I finish the widgets in the new notebook, actually render the messages sent to the message widget."}}