diff --git a/notebook/static/tree/js/kernellist.js b/notebook/static/tree/js/kernellist.js index 8b2e8f837..1ed379d6a 100644 --- a/notebook/static/tree/js/kernellist.js +++ b/notebook/static/tree/js/kernellist.js @@ -36,17 +36,19 @@ define([ KernelList.prototype.sessions_loaded = function (d) { this.sessions = d; this.clear_list(); - var item, path; + var item, path, session; for (path in d) { if (!d.hasOwnProperty(path)) { // nothing is safe in javascript continue; } + session = d[path]; item = this.new_item(-1); this.add_link({ name: path, path: path, type: 'notebook', + kernel_name: session.kernel_name }, item); } $('#running_list_placeholder').toggle($.isEmptyObject(d)); @@ -59,6 +61,11 @@ define([ .text(''); var that = this; + var kernel_name = $('
') + .addClass('kernel-name') + .text(model.kernel_name) + .appendTo(running_indicator); + var shutdown_button = $('