From 4121c526d17638b84ad03beececc47ac30b29b8e 2014-07-24 23:55:18 From: Thomas Kluyver Date: 2014-07-24 23:55:18 Subject: [PATCH] Remove last use of global kernelselector --- diff --git a/IPython/html/static/notebook/js/kernelselector.js b/IPython/html/static/notebook/js/kernelselector.js index c78affa..908c25e 100644 --- a/IPython/html/static/notebook/js/kernelselector.js +++ b/IPython/html/static/notebook/js/kernelselector.js @@ -19,8 +19,6 @@ define([ this.request_kernelspecs(); } this.bind_events(); - // For now, this is how we make this object available elsewhere - IPython.kernelselector = this; }; KernelSelector.prototype.request_kernelspecs = function() { diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 1e02b2c..7fefae7 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -2275,12 +2275,6 @@ define([ if (this.session === null) { var kernelspec = this.metadata.kernelspec || {}; var kernel_name = kernelspec.name || this.default_kernel_name; - - // If we don't already know about this kernel spec, store its info - var kernelspecs = IPython.kernelselector.kernelspecs; - if (kernelspec !== {} && !(kernel_name in kernelspecs)) { - kernelspecs[kernel_name] = kernelspec; - } this.start_session(kernel_name); }