{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/comments/34422681","id":34422681,"diff_hunk":"@@ -10,34 +10,45 @@ define([\n ], function($, CodeMirror, moment){\n     \"use strict\";\n     \n+    /**\n+     * Load a single extension.\n+     * @param  {string} extension - extension path.\n+     * @return {Promise} that resolves to an extension module handle\n+     */\n+    var load_extension = function (extension) {\n+        return new Promise(function(resolve, reject) {\n+            require([\"nbextensions/\" + extension], function(module) {\n+                console.log(\"Loaded extension: \" + extension);\n+                try {\n+                    module.load_ipython_extension();\n+                } finally {\n+                    resolve(module);\n+                }\n+            }, function(err) {\n+                reject(err);\n+            });\n+        });\n+    };\n+\n+    /**\n+     * Load multiple extensions.\n+     * Takes n-args, where each arg is a string path to the extension.\n+     * @return {Promise} that resolves to a list of loaded module handles.\n+     */\n     var load_extensions = function () {\n         // load one or more Jupyter notebook extensions with requirejs\n-        \n+\n         var extensions = [];\n         var extension_names = arguments;\n         for (var i = 0; i < extension_names.length; i++) {\n-            extensions.push(\"nbextensions/\" + arguments[i]);\n+            extensions.push(arguments[i]);\n         }","path":"notebook/static/base/js/utils.js","position":null,"original_position":38,"commit_id":"fbae11d3349f09c70a96b4aea5f8d35b51a38e5e","original_commit_id":"58365cbdbb409511c6b75aaf82eb9df259e2dee0","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"body":"See latest commit","created_at":"2015-07-12T15:28:06Z","updated_at":"2015-07-12T15:28:06Z","html_url":"https://github.com/jupyter/notebook/pull/193#discussion_r34422681","pull_request_url":"https://api.github.com/repos/jupyter/notebook/pulls/193","_links":{"self":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/comments/34422681"},"html":{"href":"https://github.com/jupyter/notebook/pull/193#discussion_r34422681"},"pull_request":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/193","id":39747574,"html_url":"https://github.com/jupyter/notebook/pull/193","diff_url":"https://github.com/jupyter/notebook/pull/193.diff","patch_url":"https://github.com/jupyter/notebook/pull/193.patch","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/193","number":193,"state":"open","locked":false,"title":"Fix front-end extension loading","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"body":"So that one failure doesn't bomb on everything.","created_at":"2015-07-11T15:35:05Z","updated_at":"2015-07-12T15:28:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d5a07fe486288e245dc1ebe0dd5658e08baa7e8","assignee":null,"milestone":{"url":"https://api.github.com/repos/jupyter/notebook/milestones/3","html_url":"https://github.com/jupyter/notebook/milestones/4.0","labels_url":"https://api.github.com/repos/jupyter/notebook/milestones/3/labels","id":1063966,"number":3,"title":"4.0","description":null,"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":5,"closed_issues":46,"state":"open","created_at":"2015-04-12T18:46:01Z","updated_at":"2015-07-11T15:35:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/jupyter/notebook/pulls/193/commits","review_comments_url":"https://api.github.com/repos/jupyter/notebook/pulls/193/comments","review_comment_url":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/193/comments","statuses_url":"https://api.github.com/repos/jupyter/notebook/statuses/fbae11d3349f09c70a96b4aea5f8d35b51a38e5e","head":{"label":"jdfreder:loadfix","ref":"loadfix","sha":"fbae11d3349f09c70a96b4aea5f8d35b51a38e5e","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"repo":{"id":33946604,"name":"notebook","full_name":"jdfreder/notebook","owner":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdfreder/notebook","description":"Jupyter Interactive Notebook","fork":true,"url":"https://api.github.com/repos/jdfreder/notebook","forks_url":"https://api.github.com/repos/jdfreder/notebook/forks","keys_url":"https://api.github.com/repos/jdfreder/notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdfreder/notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdfreder/notebook/teams","hooks_url":"https://api.github.com/repos/jdfreder/notebook/hooks","issue_events_url":"https://api.github.com/repos/jdfreder/notebook/issues/events{/number}","events_url":"https://api.github.com/repos/jdfreder/notebook/events","assignees_url":"https://api.github.com/repos/jdfreder/notebook/assignees{/user}","branches_url":"https://api.github.com/repos/jdfreder/notebook/branches{/branch}","tags_url":"https://api.github.com/repos/jdfreder/notebook/tags","blobs_url":"https://api.github.com/repos/jdfreder/notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdfreder/notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdfreder/notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdfreder/notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdfreder/notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/jdfreder/notebook/languages","stargazers_url":"https://api.github.com/repos/jdfreder/notebook/stargazers","contributors_url":"https://api.github.com/repos/jdfreder/notebook/contributors","subscribers_url":"https://api.github.com/repos/jdfreder/notebook/subscribers","subscription_url":"https://api.github.com/repos/jdfreder/notebook/subscription","commits_url":"https://api.github.com/repos/jdfreder/notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdfreder/notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdfreder/notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdfreder/notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdfreder/notebook/contents/{+path}","compare_url":"https://api.github.com/repos/jdfreder/notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdfreder/notebook/merges","archive_url":"https://api.github.com/repos/jdfreder/notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdfreder/notebook/downloads","issues_url":"https://api.github.com/repos/jdfreder/notebook/issues{/number}","pulls_url":"https://api.github.com/repos/jdfreder/notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/jdfreder/notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/jdfreder/notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdfreder/notebook/labels{/name}","releases_url":"https://api.github.com/repos/jdfreder/notebook/releases{/id}","created_at":"2015-04-14T17:30:13Z","updated_at":"2015-05-15T18:19:08Z","pushed_at":"2015-07-12T15:27:43Z","git_url":"git://github.com/jdfreder/notebook.git","ssh_url":"git@github.com:jdfreder/notebook.git","clone_url":"https://github.com/jdfreder/notebook.git","svn_url":"https://github.com/jdfreder/notebook","homepage":null,"size":16747,"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":"cead281f26856fe49e0d4194c6a48ec531ba412c","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}","created_at":"2015-04-09T06:58:03Z","updated_at":"2015-07-12T08:59:44Z","pushed_at":"2015-07-12T15:27:43Z","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":null,"size":20650,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":75,"forks":56,"open_issues":75,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/193"},"html":{"href":"https://github.com/jupyter/notebook/pull/193"},"issue":{"href":"https://api.github.com/repos/jupyter/notebook/issues/193"},"comments":{"href":"https://api.github.com/repos/jupyter/notebook/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/notebook/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/notebook/statuses/fbae11d3349f09c70a96b4aea5f8d35b51a38e5e"}}}}