Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50659 views
1
//----------------------------------------------------------------------------
2
// Copyright (C) 2014 The IPython Development Team
3
//
4
// Distributed under the terms of the BSD License. The full license is in
5
// the file COPYING, distributed as part of this software.
6
//----------------------------------------------------------------------------
7
8
//============================================================================
9
// Running Kernels List
10
//============================================================================
11
12
var IPython = (function (IPython) {
13
"use strict";
14
15
var utils = IPython.utils;
16
17
var KernelList = function (selector, options) {
18
IPython.NotebookList.call(this, selector, options, 'running');
19
};
20
21
KernelList.prototype = Object.create(IPython.NotebookList.prototype);
22
23
KernelList.prototype.sessions_loaded = function (d) {
24
this.sessions = d;
25
this.clear_list();
26
var item;
27
for (var path in d) {
28
item = this.new_notebook_item(-1);
29
this.add_link('', path, item);
30
this.add_shutdown_button(item, this.sessions[path]);
31
}
32
33
$('#running_list_header').toggle($.isEmptyObject(d));
34
}
35
36
IPython.KernelList = KernelList;
37
38
return IPython;
39
40
}(IPython));
41
42