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

View File

@ -74,7 +74,9 @@ define([
nb_path = data[i].notebook.path;
this.sessions[nb_path] = {
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);