//----------------------------------------------------------------------------1// Copyright (C) 2014 The IPython Development Team2//3// Distributed under the terms of the BSD License. The full license is in4// the file COPYING, distributed as part of this software.5//----------------------------------------------------------------------------67//============================================================================8// Running Kernels List9//============================================================================1011var IPython = (function (IPython) {12"use strict";1314var utils = IPython.utils;1516var KernelList = function (selector, options) {17IPython.NotebookList.call(this, selector, options, 'running');18};1920KernelList.prototype = Object.create(IPython.NotebookList.prototype);2122KernelList.prototype.sessions_loaded = function (d) {23this.sessions = d;24this.clear_list();25var item;26for (var path in d) {27item = this.new_notebook_item(-1);28this.add_link('', path, item);29this.add_shutdown_button(item, this.sessions[path]);30}3132$('#running_list_header').toggle($.isEmptyObject(d));33}3435IPython.KernelList = KernelList;3637return IPython;3839}(IPython));404142