mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-24 14:20:54 +08:00
Add default_kernel_name class level variable
This commit is contained in:
parent
c37acf2ae7
commit
5afc070910
@ -59,6 +59,9 @@ define([
|
||||
this.keyboard_manager = options.keyboard_manager;
|
||||
this.save_widget = options.save_widget;
|
||||
this.tooltip = new tooltip.Tooltip(this.events);
|
||||
// default_kernel_name is a temporary measure while we implement proper
|
||||
// kernel selection and delayed start. Do not rely on it.
|
||||
this.default_kernel_name = 'python';
|
||||
// TODO: This code smells (and the other `= this` line a couple lines down)
|
||||
// We need a better way to deal with circular instance references.
|
||||
this.keyboard_manager.notebook = this;
|
||||
@ -1498,7 +1501,7 @@ define([
|
||||
// For now, create all sessions with the 'python' kernel, which is the
|
||||
// default. Later, the user will be able to select kernels. This is
|
||||
// overridden if KernelManager.kernel_cmd is specified for the server.
|
||||
kernel_name: 'python',
|
||||
kernel_name: this.default_kernel_name,
|
||||
notebook: this});
|
||||
|
||||
this.session.start($.proxy(this._session_started, this));
|
||||
|
Loading…
x
Reference in New Issue
Block a user