Show More
@@ -1370,7 +1370,7 b' var IPython = (function (IPython) {' | |||||
1370 | Notebook.prototype.start_kernel = function () { |
|
1370 | Notebook.prototype.start_kernel = function () { | |
1371 | var base_url = $('body').data('baseKernelUrl') + "kernels"; |
|
1371 | var base_url = $('body').data('baseKernelUrl') + "kernels"; | |
1372 | this.kernel = new IPython.Kernel(base_url); |
|
1372 | this.kernel = new IPython.Kernel(base_url); | |
1373 | this.kernel.start(this.notebook_id); |
|
1373 | this.kernel.start({notebook: this.notebook_id}); | |
1374 | // Now that the kernel has been created, tell the CodeCells about it. |
|
1374 | // Now that the kernel has been created, tell the CodeCells about it. | |
1375 | var ncells = this.ncells(); |
|
1375 | var ncells = this.ncells(); | |
1376 | for (var i=0; i<ncells; i++) { |
|
1376 | for (var i=0; i<ncells; i++) { |
@@ -72,10 +72,10 b' var IPython = (function (IPython) {' | |||||
72 | * Start the Python kernel |
|
72 | * Start the Python kernel | |
73 | * @method start |
|
73 | * @method start | |
74 | */ |
|
74 | */ | |
75 |
Kernel.prototype.start = function ( |
|
75 | Kernel.prototype.start = function (params) { | |
76 | var that = this; |
|
76 | var that = this; | |
77 | if (!this.running) { |
|
77 | if (!this.running) { | |
78 |
var qs = $.param( |
|
78 | var qs = $.param(params); | |
79 | var url = this.base_url + '?' + qs; |
|
79 | var url = this.base_url + '?' + qs; | |
80 | $.post(url, |
|
80 | $.post(url, | |
81 | $.proxy(that._kernel_started,that), |
|
81 | $.proxy(that._kernel_started,that), |
General Comments 0
You need to be logged in to leave comments.
Login now