on_error = function (xhr, status, err) {
            that.events.trigger('kernel_dead.Kernel', {kernel: that});
            that._kernel_dead();
            if (error) {
                error(xhr, status, err);
            }
        }
POST /api/kernels/[:kernel_id]/restart

Restart the kernel.

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