Skip to content

Commit 91ceeb6

Browse files
committed
Add default_kernel_name class level variable
1 parent 1df6dc8 commit 91ceeb6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IPython/html/static/notebook/js/notebook.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ define([
5959
this.keyboard_manager = options.keyboard_manager;
6060
this.save_widget = options.save_widget;
6161
this.tooltip = new tooltip.Tooltip(this.events);
62+
// default_kernel_name is a temporary measure while we implement proper
63+
// kernel selection and delayed start. Do not rely on it.
64+
this.default_kernel_name = 'python';
6265
// TODO: This code smells (and the other `= this` line a couple lines down)
6366
// We need a better way to deal with circular instance references.
6467
this.keyboard_manager.notebook = this;
@@ -1498,7 +1501,7 @@ define([
14981501
// For now, create all sessions with the 'python' kernel, which is the
14991502
// default. Later, the user will be able to select kernels. This is
15001503
// overridden if KernelManager.kernel_cmd is specified for the server.
1501-
kernel_name: 'python',
1504+
kernel_name: this.default_kernel_name,
15021505
notebook: this});
15031506

15041507
this.session.start($.proxy(this._session_started, this));

0 commit comments

Comments
 (0)