{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/8265","labels_url":"https://api.github.com/repos/ipython/ipython/issues/8265/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/8265/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/8265/events","html_url":"https://github.com/ipython/ipython/issues/8265","id":66846006,"number":8265,"title":"Require dependencies for custom.js","user":{"login":"dsblank","id":168568,"avatar_url":"https://avatars.githubusercontent.com/u/168568?v=3","gravatar_id":"","url":"https://api.github.com/users/dsblank","html_url":"https://github.com/dsblank","followers_url":"https://api.github.com/users/dsblank/followers","following_url":"https://api.github.com/users/dsblank/following{/other_user}","gists_url":"https://api.github.com/users/dsblank/gists{/gist_id}","starred_url":"https://api.github.com/users/dsblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsblank/subscriptions","organizations_url":"https://api.github.com/users/dsblank/orgs","repos_url":"https://api.github.com/users/dsblank/repos","events_url":"https://api.github.com/users/dsblank/events{/privacy}","received_events_url":"https://api.github.com/users/dsblank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-07T10:15:15Z","updated_at":"2015-04-24T11:26:27Z","closed_at":null,"body":"In IPython2 one could put this in one's custom.js and it would work:\r\n\r\n```javascript\r\nIPython.load_extensions('calico-spell-check'); \r\n```\r\n\r\nIn IPython 3, one needs:\r\n\r\n```javascript\r\nrequire([ \r\n     'base/js/namespace', \r\n     'base/js/events' \r\n], function(IPython, events) { \r\n     events.on('app_initialized.NotebookApp', function(){ \r\n         IPython.load_extensions('calico-spell-check'); \r\n     }); \r\n });\r\n```\r\nCan't these dependencies by required before attempting to run custom.js?\r\n\r\nSee also conversation at https://github.com/ipython/ipython/issues/3216#issuecomment-89668489"},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/95904197","html_url":"https://github.com/ipython/ipython/issues/8265#issuecomment-95904197","issue_url":"https://api.github.com/repos/ipython/ipython/issues/8265","id":95904197,"user":{"login":"dsblank","id":168568,"avatar_url":"https://avatars.githubusercontent.com/u/168568?v=3","gravatar_id":"","url":"https://api.github.com/users/dsblank","html_url":"https://github.com/dsblank","followers_url":"https://api.github.com/users/dsblank/followers","following_url":"https://api.github.com/users/dsblank/following{/other_user}","gists_url":"https://api.github.com/users/dsblank/gists{/gist_id}","starred_url":"https://api.github.com/users/dsblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsblank/subscriptions","organizations_url":"https://api.github.com/users/dsblank/orgs","repos_url":"https://api.github.com/users/dsblank/repos","events_url":"https://api.github.com/users/dsblank/events{/privacy}","received_events_url":"https://api.github.com/users/dsblank/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T11:26:27Z","updated_at":"2015-04-24T11:26:27Z","body":"It would be great to target a fix for ipython-3.2. How easy is this to fix?"}}