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