{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/comments/56425575","id":56425575,"diff_hunk":"@@ -2221,6 +2224,36 @@ define(function (require) {\n     };\n \n     /**\n+     * Execute a single cell\n+     * \n+     * @param cell - the cell to execute\n+     * \n+     * If the cell can not be executed, it is added to a list of \n+     * cells pending execution.\n+     */\n+    Notebook.prototype.execute = function (cell) {\n+        var executed = cell.execute();\n+        if (!executed) {\n+            this.pending_execution.push(cell)","path":"notebook/static/notebook/js/notebook.js","position":31,"original_position":31,"commit_id":"e2f397a490fedf9b7195c01d75138106428d510f","original_commit_id":"e2f397a490fedf9b7195c01d75138106428d510f","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"body":"I like that approach ","created_at":"2016-03-16T22:15:36Z","updated_at":"2016-03-16T22:15:36Z","html_url":"https://github.com/jupyter/notebook/pull/1002#discussion_r56425575","pull_request_url":"https://api.github.com/repos/jupyter/notebook/pulls/1002","_links":{"self":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/comments/56425575"},"html":{"href":"https://github.com/jupyter/notebook/pull/1002#discussion_r56425575"},"pull_request":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/1002"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/1002","id":57290365,"html_url":"https://github.com/jupyter/notebook/pull/1002","diff_url":"https://github.com/jupyter/notebook/pull/1002.diff","patch_url":"https://github.com/jupyter/notebook/pull/1002.patch","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/1002","number":1002,"state":"open","locked":false,"title":"Implement delayed evaluation for the cell executions happening before a kernel is set up","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},"body":"This is an attempt at taking care of #994. We implement two queues for cell executions. One is at the notebook level, to queue up executions when a kernel does not exist. Another is at the kernel level, to queue up messages when the kernel is not connected.","created_at":"2016-01-26T23:28:31Z","updated_at":"2016-03-16T22:15:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ac916c92bd1f1c674c880e08077a09c36f416af","assignee":null,"milestone":{"url":"https://api.github.com/repos/jupyter/notebook/milestones/7","html_url":"https://github.com/jupyter/notebook/milestones/4.2","labels_url":"https://api.github.com/repos/jupyter/notebook/milestones/7/labels","id":1308320,"number":7,"title":"4.2","description":"","creator":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":41,"state":"open","created_at":"2015-09-16T11:58:11Z","updated_at":"2016-03-16T21:53:51Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/jupyter/notebook/pulls/1002/commits","review_comments_url":"https://api.github.com/repos/jupyter/notebook/pulls/1002/comments","review_comment_url":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/1002/comments","statuses_url":"https://api.github.com/repos/jupyter/notebook/statuses/e2f397a490fedf9b7195c01d75138106428d510f","head":{"label":"jasongrout:delayevaluation","ref":"delayevaluation","sha":"e2f397a490fedf9b7195c01d75138106428d510f","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},"repo":{"id":33945626,"name":"notebook","full_name":"jasongrout/notebook","owner":{"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},"private":false,"html_url":"https://github.com/jasongrout/notebook","description":"Jupyter Interactive Notebook","fork":true,"url":"https://api.github.com/repos/jasongrout/notebook","forks_url":"https://api.github.com/repos/jasongrout/notebook/forks","keys_url":"https://api.github.com/repos/jasongrout/notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasongrout/notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasongrout/notebook/teams","hooks_url":"https://api.github.com/repos/jasongrout/notebook/hooks","issue_events_url":"https://api.github.com/repos/jasongrout/notebook/issues/events{/number}","events_url":"https://api.github.com/repos/jasongrout/notebook/events","assignees_url":"https://api.github.com/repos/jasongrout/notebook/assignees{/user}","branches_url":"https://api.github.com/repos/jasongrout/notebook/branches{/branch}","tags_url":"https://api.github.com/repos/jasongrout/notebook/tags","blobs_url":"https://api.github.com/repos/jasongrout/notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasongrout/notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasongrout/notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasongrout/notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasongrout/notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/jasongrout/notebook/languages","stargazers_url":"https://api.github.com/repos/jasongrout/notebook/stargazers","contributors_url":"https://api.github.com/repos/jasongrout/notebook/contributors","subscribers_url":"https://api.github.com/repos/jasongrout/notebook/subscribers","subscription_url":"https://api.github.com/repos/jasongrout/notebook/subscription","commits_url":"https://api.github.com/repos/jasongrout/notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasongrout/notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasongrout/notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasongrout/notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jasongrout/notebook/contents/{+path}","compare_url":"https://api.github.com/repos/jasongrout/notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasongrout/notebook/merges","archive_url":"https://api.github.com/repos/jasongrout/notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasongrout/notebook/downloads","issues_url":"https://api.github.com/repos/jasongrout/notebook/issues{/number}","pulls_url":"https://api.github.com/repos/jasongrout/notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/jasongrout/notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/jasongrout/notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasongrout/notebook/labels{/name}","releases_url":"https://api.github.com/repos/jasongrout/notebook/releases{/id}","deployments_url":"https://api.github.com/repos/jasongrout/notebook/deployments","created_at":"2015-04-14T17:11:19Z","updated_at":"2015-06-19T22:34:51Z","pushed_at":"2016-03-16T21:57:08Z","git_url":"git://github.com/jasongrout/notebook.git","ssh_url":"git@github.com:jasongrout/notebook.git","clone_url":"https://github.com/jasongrout/notebook.git","svn_url":"https://github.com/jasongrout/notebook","homepage":null,"size":21638,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jupyter:master","ref":"master","sha":"6af49e787562a3fce35a38e42561e2adb57fa789","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":33653601,"name":"notebook","full_name":"jupyter/notebook","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/notebook","description":"Jupyter Interactive Notebook","fork":false,"url":"https://api.github.com/repos/jupyter/notebook","forks_url":"https://api.github.com/repos/jupyter/notebook/forks","keys_url":"https://api.github.com/repos/jupyter/notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/notebook/teams","hooks_url":"https://api.github.com/repos/jupyter/notebook/hooks","issue_events_url":"https://api.github.com/repos/jupyter/notebook/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/notebook/events","assignees_url":"https://api.github.com/repos/jupyter/notebook/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/notebook/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/notebook/tags","blobs_url":"https://api.github.com/repos/jupyter/notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/notebook/languages","stargazers_url":"https://api.github.com/repos/jupyter/notebook/stargazers","contributors_url":"https://api.github.com/repos/jupyter/notebook/contributors","subscribers_url":"https://api.github.com/repos/jupyter/notebook/subscribers","subscription_url":"https://api.github.com/repos/jupyter/notebook/subscription","commits_url":"https://api.github.com/repos/jupyter/notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/notebook/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/notebook/merges","archive_url":"https://api.github.com/repos/jupyter/notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/notebook/downloads","issues_url":"https://api.github.com/repos/jupyter/notebook/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/notebook/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/notebook/releases{/id}","deployments_url":"https://api.github.com/repos/jupyter/notebook/deployments","created_at":"2015-04-09T06:58:03Z","updated_at":"2016-03-16T16:43:36Z","pushed_at":"2016-03-16T21:57:08Z","git_url":"git://github.com/jupyter/notebook.git","ssh_url":"git@github.com:jupyter/notebook.git","clone_url":"https://github.com/jupyter/notebook.git","svn_url":"https://github.com/jupyter/notebook","homepage":"https://jupyter-notebook.readthedocs.org/","size":27474,"stargazers_count":834,"watchers_count":834,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":283,"mirror_url":null,"open_issues_count":288,"forks":283,"open_issues":288,"watchers":834,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/1002"},"html":{"href":"https://github.com/jupyter/notebook/pull/1002"},"issue":{"href":"https://api.github.com/repos/jupyter/notebook/issues/1002"},"comments":{"href":"https://api.github.com/repos/jupyter/notebook/issues/1002/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/1002/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/1002/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/notebook/statuses/e2f397a490fedf9b7195c01d75138106428d510f"}}}}