on_success = function (data, status, xhr) {
            if (that.kernel) {
                that.kernel.name = that.kernel_model.name;
            } else {
                var kernel_service_url = utils.url_path_join(that.base_url, "api/kernels");
                that.kernel = new kernel.Kernel(kernel_service_url, that.base_url, that.ws_url, that.notebook, that.kernel_model.name, that.read_only);
            }
            that.events.trigger('kernel_created.Session', {session: that, kernel: that.kernel});
            that.kernel._kernel_created(data.kernel);
            if (success) {
                success(data, status, xhr);
            }
        }
POST /api/sessions

Start a new session. This function can only executed once.

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