mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
console.log
This commit is contained in:
parent
b5abeb8ed6
commit
0327b39a67
@ -137,14 +137,13 @@ define([
|
||||
|
||||
KernelSelector.prototype._set_kernel = function (kernel_name) {
|
||||
/** Actually set the kernel (kernelspecs have been loaded) */
|
||||
console.log("_set_kernel", kernel_name, this.current_selection);
|
||||
if (kernel_name === this.current_selection) {
|
||||
// only trigger event if value changed
|
||||
return;
|
||||
}
|
||||
var ks = this.kernelspecs[kernel_name];
|
||||
if (this.notebook._session_starting) {
|
||||
console.log("Cannot change kernel while waiting for pending session start.");
|
||||
console.error("Cannot change kernel while waiting for pending session start.");
|
||||
return;
|
||||
}
|
||||
this.current_selection = kernel_name;
|
||||
|
Loading…
Reference in New Issue
Block a user