on_success = function (data, status, xhr) {
            /**
             * get kernel info so we know what state the kernel is in
             */
            that.kernel_info();
            if (success) {
                success(data, status, xhr);
            }
        }
POST /api/kernels/[:kernel_id]/interrupt

Interrupt the kernel.

@function interrupt
@param {function} [success] - function executed on ajax success
@param {function} [error] - functon executed on ajax error