{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/8069","labels_url":"https://api.github.com/repos/ipython/ipython/issues/8069/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/8069/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/8069/events","html_url":"https://github.com/ipython/ipython/issues/8069","id":62442863,"number":8069,"title":"kernel_ready.Kernel triggered twice when creating a new notebook","user":{"login":"neilzimmerman","id":1383059,"avatar_url":"https://avatars.githubusercontent.com/u/1383059?v=3","gravatar_id":"","url":"https://api.github.com/users/neilzimmerman","html_url":"https://github.com/neilzimmerman","followers_url":"https://api.github.com/users/neilzimmerman/followers","following_url":"https://api.github.com/users/neilzimmerman/following{/other_user}","gists_url":"https://api.github.com/users/neilzimmerman/gists{/gist_id}","starred_url":"https://api.github.com/users/neilzimmerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilzimmerman/subscriptions","organizations_url":"https://api.github.com/users/neilzimmerman/orgs","repos_url":"https://api.github.com/users/neilzimmerman/repos","events_url":"https://api.github.com/users/neilzimmerman/events{/privacy}","received_events_url":"https://api.github.com/users/neilzimmerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T16:14:15Z","updated_at":"2015-03-17T16:53:25Z","closed_at":null,"body":"Any time you a pushed directly into a new notebook, the 'kernel_ready.Kernel' is triggered twice from kernel.js. This usually happens when creating a new notebook or \"making a copy\" from within a running notebook.\r\n"},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/82475848","html_url":"https://github.com/ipython/ipython/issues/8069#issuecomment-82475848","issue_url":"https://api.github.com/repos/ipython/ipython/issues/8069","id":82475848,"user":{"login":"neilzimmerman","id":1383059,"avatar_url":"https://avatars.githubusercontent.com/u/1383059?v=3","gravatar_id":"","url":"https://api.github.com/users/neilzimmerman","html_url":"https://github.com/neilzimmerman","followers_url":"https://api.github.com/users/neilzimmerman/followers","following_url":"https://api.github.com/users/neilzimmerman/following{/other_user}","gists_url":"https://api.github.com/users/neilzimmerman/gists{/gist_id}","starred_url":"https://api.github.com/users/neilzimmerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilzimmerman/subscriptions","organizations_url":"https://api.github.com/users/neilzimmerman/orgs","repos_url":"https://api.github.com/users/neilzimmerman/repos","events_url":"https://api.github.com/users/neilzimmerman/events{/privacy}","received_events_url":"https://api.github.com/users/neilzimmerman/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T16:53:25Z","updated_at":"2015-03-17T16:53:25Z","body":"This is happening because 'kernel_ready.Kernel' is triggered in kernel.js on line 960 when the new kernel is starting and on line 411 after connecting. Does it need to be triggered the first time? is it really ready if it is not yet connected?"}}