diff --git a/notebook/static/base/js/keyboard.js b/notebook/static/base/js/keyboard.js index 5eda10a06..f2e41f0e1 100644 --- a/notebook/static/base/js/keyboard.js +++ b/notebook/static/base/js/keyboard.js @@ -9,11 +9,10 @@ */ define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'underscore', -], function(IPython, $, utils, _) { +], function($, utils, _) { "use strict"; @@ -447,8 +446,5 @@ define([ event_to_shortcut : event_to_shortcut, }; - // For backwards compatibility. - IPython.keyboard = keyboard; - return keyboard; }); diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index f3e72692e..bf48907b6 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -5,6 +5,7 @@ var IPython = IPython || {}; define(function(){ var utils = require('base/js/utils'); IPython.security = require('base/js/security'); + IPython.keyboard = require('base/js/keyboard'); IPython.utils = utils; IPython.load_extensions = utils.load_extensions;