Show More
@@ -19,18 +19,19 b' define([' | |||
|
19 | 19 | this.request_kernelspecs(); |
|
20 | 20 | } |
|
21 | 21 | this.bind_events(); |
|
22 | // Make the object globally available for user convenience & inspection | |
|
23 | IPython.kernelselector = this; | |
|
22 | 24 | }; |
|
23 | 25 | |
|
24 | 26 | KernelSelector.prototype.request_kernelspecs = function() { |
|
25 | 27 | var url = utils.url_join_encode(this.notebook.base_url, 'api/kernelspecs'); |
|
26 | $.ajax(url, {success: $.proxy(this.got_kernelspecs, this)}); | |
|
28 | $.ajax(url, {success: $.proxy(this._got_kernelspecs, this)}); | |
|
27 | 29 | }; |
|
28 | 30 | |
|
29 | KernelSelector.prototype.got_kernelspecs = function(data, status, xhr) { | |
|
31 | KernelSelector.prototype._got_kernelspecs = function(data, status, xhr) { | |
|
30 | 32 | this.kernelspecs = {}; |
|
31 | 33 | var menu = this.element.find("#kernel_selector"); |
|
32 | 34 | var change_kernel_submenu = $("#menu-change-kernel-submenu"); |
|
33 | console.log(change_kernel_submenu); | |
|
34 | 35 | for (var i = 0; i < data.length; i++) { |
|
35 | 36 | var ks = data[i]; |
|
36 | 37 | this.kernelspecs[ks.name] = ks; |
General Comments 0
You need to be logged in to leave comments.
Login now