mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
remove dependencies to namespace in SessionList
This commit is contained in:
parent
4c08e4caf4
commit
44de1ac270
@ -56,6 +56,8 @@ define(function(){
|
|||||||
jglobal('MarkdownCell','base/js/textcell');
|
jglobal('MarkdownCell','base/js/textcell');
|
||||||
jglobal('RawCell','base/js/textcell');
|
jglobal('RawCell','base/js/textcell');
|
||||||
jglobal('Cell','base/js/cell');
|
jglobal('Cell','base/js/cell');
|
||||||
|
|
||||||
|
// notebook
|
||||||
jglobal('OutputArea','notebook/js/outputarea');
|
jglobal('OutputArea','notebook/js/outputarea');
|
||||||
jglobal('KeyboardManager','notebook/js/keyboardmanager');
|
jglobal('KeyboardManager','notebook/js/keyboardmanager');
|
||||||
jglobal('Completer','notebook/js/completer');
|
jglobal('Completer','notebook/js/completer');
|
||||||
@ -66,6 +68,9 @@ define(function(){
|
|||||||
jglobal('Pager','notebook/js/pager');
|
jglobal('Pager','notebook/js/pager');
|
||||||
jglobal('QuickHelp','notebook/js/quickhelp');
|
jglobal('QuickHelp','notebook/js/quickhelp');
|
||||||
|
|
||||||
|
// tree
|
||||||
|
jglobal('SessionList','tree/js/sessionlist');
|
||||||
|
|
||||||
Jupyter.version = "4.0.0.dev";
|
Jupyter.version = "4.0.0.dev";
|
||||||
Jupyter._target = '_blank';
|
Jupyter._target = '_blank';
|
||||||
return Jupyter;
|
return Jupyter;
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
// Distributed under the terms of the Modified BSD License.
|
// Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
define([
|
define([
|
||||||
'base/js/namespace',
|
|
||||||
'jquery',
|
'jquery',
|
||||||
'base/js/utils',
|
'base/js/utils',
|
||||||
], function(IPython, $, utils) {
|
], function($, utils) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var SesssionList = function (options) {
|
var SesssionList = function (options) {
|
||||||
@ -78,8 +77,5 @@ define([
|
|||||||
this.events.trigger('sessions_loaded.Dashboard', this.sessions);
|
this.events.trigger('sessions_loaded.Dashboard', this.sessions);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Backwards compatability.
|
|
||||||
IPython.SesssionList = SesssionList;
|
|
||||||
|
|
||||||
return {'SesssionList': SesssionList};
|
return {'SesssionList': SesssionList};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user