diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js index 51bd957df..241e8773e 100644 --- a/notebook/static/base/js/namespace.js +++ b/notebook/static/base/js/namespace.js @@ -54,6 +54,7 @@ define(function(){ jglobal('TextCell','base/js/textcell'); jglobal('MarkdownCell','base/js/textcell'); jglobal('RawCell','base/js/textcell'); + jglobal('Cell','base/js/cell'); Jupyter.version = "4.0.0.dev"; Jupyter._target = '_blank'; diff --git a/notebook/static/notebook/js/cell.js b/notebook/static/notebook/js/cell.js index 3f9e4e306..56f8328a7 100644 --- a/notebook/static/notebook/js/cell.js +++ b/notebook/static/notebook/js/cell.js @@ -11,15 +11,13 @@ define([ - 'base/js/namespace', 'jquery', 'base/js/utils', 'codemirror/lib/codemirror', 'codemirror/addon/edit/matchbrackets', 'codemirror/addon/edit/closebrackets', 'codemirror/addon/comment/comment' -], function(IPython, $, utils, CodeMirror, cm_match, cm_closeb, cm_comment) { - // TODO: remove IPython dependency here +], function($, utils, CodeMirror, cm_match, cm_closeb, cm_comment) { "use strict"; var overlayHack = CodeMirror.scrollbarModel.native.prototype.overlayHack; @@ -319,7 +317,7 @@ define([ }; /** - * Delegates keyboard shortcut handling to either IPython keyboard + * Delegates keyboard shortcut handling to either Jupyter keyboard * manager when in command mode, or CodeMirror when in edit mode * * @method handle_keyevent @@ -590,7 +588,7 @@ define([ // On 3.0 and below, these things were regex. // But now should be string for json-able config. // We should get rid of assuming they might be already - // in a later version of IPython. + // in a later version of Jupyter. var re = regs[i]; if(typeof(re) === 'string'){ re = new RegExp(re) @@ -710,9 +708,6 @@ define([ }); }; - // Backwards compatibility. - IPython.Cell = Cell; - return { Cell: Cell, UnrecognizedCell: UnrecognizedCell