From dead20b1bd4363d43e69b607d4f0ccf39951eae6 Mon Sep 17 00:00:00 2001 From: David Wyde Date: Wed, 3 Apr 2013 13:28:43 -0500 Subject: [PATCH] Use existing IPython method to kill kernels. --- IPython/frontend/html/notebook/tests/casperjs/util.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/IPython/frontend/html/notebook/tests/casperjs/util.js b/IPython/frontend/html/notebook/tests/casperjs/util.js index f05050eeb..865976942 100644 --- a/IPython/frontend/html/notebook/tests/casperjs/util.js +++ b/IPython/frontend/html/notebook/tests/casperjs/util.js @@ -16,12 +16,7 @@ casper.openNewNotebook = function () { // Shut down the current notebook's kernel. casper.shutdownCurrentKernel = function () { this.thenEvaluate(function() { - var baseUrl = $('body').data('baseProjectUrl'); - var kernelId = IPython.notebook.kernel.kernel_id; - var url = baseUrl + 'kernels/' + kernelId; - $.ajax(url, { - type: 'DELETE', - }); + IPython.notebook.kernel.kill(); }); };