Show More
@@ -35,6 +35,7 b' var IPython = (function (IPython) {' | |||
|
35 | 35 | this.username = "username"; |
|
36 | 36 | this.session_id = utils.uuid(); |
|
37 | 37 | this._msg_callbacks = {}; |
|
38 | this.post = $.post; | |
|
38 | 39 | |
|
39 | 40 | if (typeof(WebSocket) !== 'undefined') { |
|
40 | 41 | this.WebSocket = WebSocket; |
@@ -94,7 +95,7 b' var IPython = (function (IPython) {' | |||
|
94 | 95 | params = params || {}; |
|
95 | 96 | if (!this.running) { |
|
96 | 97 | var qs = $.param(params); |
|
97 |
|
|
|
98 | this.post(utils.url_join_encode(this.kernel_service_url) + '?' + qs, | |
|
98 | 99 | $.proxy(this._kernel_started, this), |
|
99 | 100 | 'json' |
|
100 | 101 | ); |
@@ -113,7 +114,7 b' var IPython = (function (IPython) {' | |||
|
113 | 114 | $([IPython.events]).trigger('status_restarting.Kernel', {kernel: this}); |
|
114 | 115 | if (this.running) { |
|
115 | 116 | this.stop_channels(); |
|
116 |
|
|
|
117 | this.post(utils.url_join_encode(this.kernel_url, "restart"), | |
|
117 | 118 | $.proxy(this._kernel_started, this), |
|
118 | 119 | 'json' |
|
119 | 120 | ); |
@@ -386,7 +387,7 b' var IPython = (function (IPython) {' | |||
|
386 | 387 | Kernel.prototype.interrupt = function () { |
|
387 | 388 | if (this.running) { |
|
388 | 389 | $([IPython.events]).trigger('status_interrupting.Kernel', {kernel: this}); |
|
389 |
|
|
|
390 | this.post(utils.url_join_encode(this.kernel_url, "interrupt")); | |
|
390 | 391 | } |
|
391 | 392 | }; |
|
392 | 393 |
General Comments 0
You need to be logged in to leave comments.
Login now