import scanpy as sc sc.pp.neighbors(adata, random_state=42) sc.tl.umap(adata, random_state=42) sc.pl.umap(adata, color="leiden")