sciris.sc_parallel

Parallelization functions, allowing multiprocessing to be used simply.

NB: Uses multiprocess instead of multiprocessing under the hood for broadest support across platforms (e.g. Jupyter notebooks).

Highlights:

Functions

parallel_progress

Run a function in parallel with a optional single progress bar

parallelcmd

A function to parallelize any block of code.

parallelize

Execute a function in parallel.

Classes

TaskArgs

A class to hold the arguments for the parallel task -- not to be invoked by the user.