Use kernel display_name instead of name in running kernels list

This commit is contained in:
Julien Rebetez 2015-09-29 10:01:12 +02:00
parent 91d42c9600
commit 4925097006
2 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,7 @@ define([
name: path, name: path,
path: path, path: path,
type: 'notebook', type: 'notebook',
kernel_name: session.kernel_name kernel_display_name: session.kernel.display_name
}, item); }, item);
} }
$('#running_list_placeholder').toggle($.isEmptyObject(d)); $('#running_list_placeholder').toggle($.isEmptyObject(d));
@ -63,7 +63,7 @@ define([
var that = this; var that = this;
var kernel_name = $('<div/>') var kernel_name = $('<div/>')
.addClass('kernel-name') .addClass('kernel-name')
.text(model.kernel_name) .text(model.kernel_display_name)
.appendTo(running_indicator); .appendTo(running_indicator);
var shutdown_button = $('<button/>') var shutdown_button = $('<button/>')

View File

@ -74,7 +74,9 @@ define([
nb_path = data[i].notebook.path; nb_path = data[i].notebook.path;
this.sessions[nb_path] = { this.sessions[nb_path] = {
id: data[i].id, id: data[i].id,
kernel_name: data[i].kernel.name kernel: {
display_name: data[i].kernel.display_name
}
}; };
} }
this.events.trigger('sessions_loaded.Dashboard', this.sessions); this.events.trigger('sessions_loaded.Dashboard', this.sessions);