From 78c6ca7e218ec81d49ce2dd9e29227dcc53dd3bc Mon Sep 17 00:00:00 2001 From: Julien Rebetez Date: Mon, 28 Sep 2015 14:06:10 +0200 Subject: [PATCH] Adds kernel name to running notebooks list --- notebook/static/tree/js/kernellist.js | 9 ++++++++- notebook/static/tree/js/sessionlist.js | 5 ++++- notebook/static/tree/less/tree.less | 6 ++++++ 3 files changed, 18 insertions(+), 2 deletions(-) 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 = $('