##// END OF EJS Templates
Remove last use of global kernelselector
Thomas Kluyver -
Show More
@@ -19,8 +19,6 b' define(['
19 this.request_kernelspecs();
19 this.request_kernelspecs();
20 }
20 }
21 this.bind_events();
21 this.bind_events();
22 // For now, this is how we make this object available elsewhere
23 IPython.kernelselector = this;
24 };
22 };
25
23
26 KernelSelector.prototype.request_kernelspecs = function() {
24 KernelSelector.prototype.request_kernelspecs = function() {
@@ -2275,12 +2275,6 b' define(['
2275 if (this.session === null) {
2275 if (this.session === null) {
2276 var kernelspec = this.metadata.kernelspec || {};
2276 var kernelspec = this.metadata.kernelspec || {};
2277 var kernel_name = kernelspec.name || this.default_kernel_name;
2277 var kernel_name = kernelspec.name || this.default_kernel_name;
2278
2279 // If we don't already know about this kernel spec, store its info
2280 var kernelspecs = IPython.kernelselector.kernelspecs;
2281 if (kernelspec !== {} && !(kernel_name in kernelspecs)) {
2282 kernelspecs[kernel_name] = kernelspec;
2283 }
2284
2278
2285 this.start_session(kernel_name);
2279 this.start_session(kernel_name);
2286 }
2280 }
General Comments 0
You need to be logged in to leave comments. Login now