Use existing IPython method to kill kernels.

This commit is contained in:
David Wyde 2013-04-03 13:28:43 -05:00 committed by Paul Ivanov
parent b566c71dfd
commit dead20b1bd

View File

@ -16,12 +16,7 @@ casper.openNewNotebook = function () {
// Shut down the current notebook's kernel. // Shut down the current notebook's kernel.
casper.shutdownCurrentKernel = function () { casper.shutdownCurrentKernel = function () {
this.thenEvaluate(function() { this.thenEvaluate(function() {
var baseUrl = $('body').data('baseProjectUrl'); IPython.notebook.kernel.kill();
var kernelId = IPython.notebook.kernel.kernel_id;
var url = baseUrl + 'kernels/' + kernelId;
$.ajax(url, {
type: 'DELETE',
});
}); });
}; };