##// 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
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
Jonathan Frederic
MWE,...
r17200 'jquery',
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 'tree/js/notebooklist',
Jonathan Frederic
Fix imports of "modules",...
r17202 ], function(IPython, $, notebooklist) {
Paul Ivanov
minimal KernelList
r15382 "use strict";
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 var KernelList = function (selector, options, session_list) {
Jonathan Frederic
Fix imports of "modules",...
r17202 notebooklist.NotebookList.call(this, selector, options, 'running', session_list);
Paul Ivanov
minimal KernelList
r15382 };
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 KernelList.prototype = Object.create(NotebookList.prototype);
Paul Ivanov
minimal KernelList
r15382
Paul Ivanov
ok, Running tab is working now
r15454 KernelList.prototype.sessions_loaded = function (d) {
Paul Ivanov
added IPython.session_list...
r15479 this.sessions = d;
Paul Ivanov
ok, Running tab is working now
r15454 this.clear_list();
var item;
Paul Ivanov
added IPython.session_list...
r15479 for (var path in d) {
item = this.new_notebook_item(-1);
Paul Ivanov
don't double-join the notebook path
r15457 this.add_link('', path, item);
Paul Ivanov
small whitespace cleanup, renamed drag_info...
r15518 this.add_shutdown_button(item, this.sessions[path]);
Paul Ivanov
ok, Running tab is working now
r15454 }
Paul Ivanov
use explicit running header name + jquery's toggle
r15512 $('#running_list_header').toggle($.isEmptyObject(d));
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 };
Paul Ivanov
ok, Running tab is working now
r15454
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 // Backwards compatability.
Paul Ivanov
minimal KernelList
r15382 IPython.KernelList = KernelList;
Jonathan Frederic
Return dicts instead of classes,...
r17201 return {'KernelList': KernelList};
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 });