Show More
@@ -16,12 +16,7 b' casper.openNewNotebook = function () {' | |||
|
16 | 16 | // Shut down the current notebook's kernel. |
|
17 | 17 | casper.shutdownCurrentKernel = function () { |
|
18 | 18 | this.thenEvaluate(function() { |
|
19 | var baseUrl = $('body').data('baseProjectUrl'); | |
|
20 | var kernelId = IPython.notebook.kernel.kernel_id; | |
|
21 | var url = baseUrl + 'kernels/' + kernelId; | |
|
22 | $.ajax(url, { | |
|
23 | type: 'DELETE', | |
|
24 | }); | |
|
19 | IPython.notebook.kernel.kill(); | |
|
25 | 20 | }); |
|
26 | 21 | }; |
|
27 | 22 |
General Comments 0
You need to be logged in to leave comments.
Login now