diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index eff4e879d..b86fa39dc 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -67,9 +67,14 @@ define(function(){ jglobal('MarkdownCell','notebook/js/textcell'); jglobal('RawCell','notebook/js/textcell'); jglobal('Cell','notebook/js/cell'); + jglobal('MainToolBar','notebook/js/maintoolbar'); + jglobal('NotebookNotificationArea','notebook/js/notificationarea'); + jglobal('NotebookTour', 'notebook/js/tour'); // tree jglobal('SessionList','tree/js/sessionlist'); + jglobal('ClusterList','tree/js/clusterlist'); + jglobal('ClusterItem','tree/js/clusterlist'); Jupyter.version = "4.0.0.dev"; Jupyter._target = '_blank'; diff --git a/notebook/static/notebook/js/maintoolbar.js b/notebook/static/notebook/js/maintoolbar.js index b31bd69c3..9be2bf01d 100644 --- a/notebook/static/notebook/js/maintoolbar.js +++ b/notebook/static/notebook/js/maintoolbar.js @@ -3,11 +3,10 @@ define([ 'require', - 'base/js/namespace', 'jquery', './toolbar', './celltoolbar' -], function(require, IPython, $, toolbar, celltoolbar) { +], function(require, $, toolbar, celltoolbar) { "use strict"; var MainToolBar = function (selector, options) { @@ -158,8 +157,5 @@ define([ return wrapper; }; - // Backwards compatibility. - IPython.MainToolBar = MainToolBar; - return {'MainToolBar': MainToolBar}; }); diff --git a/notebook/static/notebook/js/notificationarea.js b/notebook/static/notebook/js/notificationarea.js index a083bf179..497934376 100644 --- a/notebook/static/notebook/js/notificationarea.js +++ b/notebook/static/notebook/js/notificationarea.js @@ -1,11 +1,10 @@ define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'base/js/dialog', 'base/js/notificationarea', 'moment' -], function(IPython, $, utils, dialog, notificationarea, moment) { +], function($, utils, dialog, notificationarea, moment) { "use strict"; var NotificationArea = notificationarea.NotificationArea; @@ -340,8 +339,5 @@ define([ }); }; - // Backwards compatibility. - IPython.NotificationArea = NotebookNotificationArea; - return {'NotebookNotificationArea': NotebookNotificationArea}; }); diff --git a/notebook/static/notebook/js/tour.js b/notebook/static/notebook/js/tour.js index e644e1769..2ae5ae2d5 100644 --- a/notebook/static/notebook/js/tour.js +++ b/notebook/static/notebook/js/tour.js @@ -2,10 +2,9 @@ // Distributed under the terms of the Modified BSD License. define([ - 'base/js/namespace', 'jquery', 'bootstraptour', -], function(IPython, $, Tour) { +], function($, Tour) { "use strict"; var tour_style = "