ParallelNeeds

ParallelNeeds["context`"]

evaluates Needs["context`"] on all available parallel kernels.

Details

Examples

open allclose all

Basic Examples  (1)

Load package for master kernel:

Load package for parallel kernels:

Properties & Relations  (2)

ParallelNeeds uses ParallelEvaluate to run Needs on all parallel kernels:

An explicit ParallelEvaluate does the same:

Only the effect of ParallelNeeds is remembered for new kernels:

Use ParallelNeeds to set up a package on all parallel kernels:

Use DistributeDefinitions to set up your own definitions:

Possible Issues  (1)

It is generally necessary to load any package also on the master kernel:

Symbols can now be used on the master and parallel kernels:

Introduced in 2008
 (7.0)