##// END OF EJS Templates
Fix imports of "modules",...
Fix imports of "modules", required after converting everything into dictionary returns.

File last commit:

r17202:a3cc0b0b
r17202:a3cc0b0b
Show More
kernellist.js
34 lines | 990 B | application/javascript | JavascriptLexer
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jquery',
'tree/js/notebooklist',
], function(IPython, $, notebooklist) {
"use strict";
var KernelList = function (selector, options, session_list) {
notebooklist.NotebookList.call(this, selector, options, 'running', session_list);
};
KernelList.prototype = Object.create(NotebookList.prototype);
KernelList.prototype.sessions_loaded = function (d) {
this.sessions = d;
this.clear_list();
var item;
for (var path in d) {
item = this.new_notebook_item(-1);
this.add_link('', path, item);
this.add_shutdown_button(item, this.sessions[path]);
}
$('#running_list_header').toggle($.isEmptyObject(d));
};
// Backwards compatability.
IPython.KernelList = KernelList;
return {'KernelList': KernelList};
});