def METHOD_NAME(self, path, kernel_name):
    model_future = self.session_manager.create_session(
        kernel_name=kernel_name, path=path, type="notebook"
    )
    model = yield model_future
    kernel_id = model["kernel"]["id"]
    self.logger.debug("Kernel created with id {}".format(str(kernel_id)))
    k_m = self.kernel_manager.get_kernel(kernel_id)
    raise gen.Return(k_m)