def newKernel(self, nb):
        """
        generate a new kernel
        """
        manager, kernel = utils.start_new_kernel(
            kernel_name=nb.metadata.kernelspec.name
        )
        return kernel
def newKernel ( self , nb ) : manager , kernel = utils . start_new_kernel ( kernel_name = nb . metadata . kernelspec . name ) return kernel
generate a new kernel