You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix n_jobs's default and make it work for more APIs #2387
n_jobs (integer, optional, default: 1) – The number of jobs to use for the computation. If -1 all CPUs are used. If 1 is given, no parallel computing code is used at all, which is useful for debugging.
^^I've empirically confirmed this; been seeing multi-fold speedups when I set n_jobs=-1 corresponding to the number of cores, versus running with the default. From what I can tell, running without specifying n_jobs results in 1 core being used.
changed the title [-]`sc.external.pp.magic`: what is `n_jobs`'s default _really_?[/-][+]Fix `n_jobs`'s default and make it work for more APIs[/+]on Apr 27, 2026
Activity
jpmcga commentedon Mar 11, 2025
^^I've empirically confirmed this; been seeing multi-fold speedups when I set
n_jobs=-1corresponding to the number of cores, versus running with the default. From what I can tell, running without specifyingn_jobsresults in 1 core being used.numba.set_num_threadswhenn_jobsis specified (e.g. inscanpy.tl.rank_genes_group) #2390flying-sheep commentedon Mar 11, 2025
Yeah, we definitely need to improve this. #2390 is also relevant here
[-]`sc.external.pp.magic`: what is `n_jobs`'s default _really_?[/-][+]Fix `n_jobs`'s default and make it work for more APIs[/+]n_jobsrelated things to be done to be robust against oversubscription #4552