Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use existing IPython method to kill kernels.

  • Loading branch information...
commit 4ed09798229add43212c618e1ed7a551106dd802 1 parent 4d27859
@dwyde authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 IPython/frontend/html/notebook/tests/casperjs/util.js
View
7 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();
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.