mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Use kernel display_name instead of name in running kernels list
This commit is contained in:
parent
91d42c9600
commit
4925097006
@ -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/>')
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user