This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

$DistributedContexts

$DistributedContexts
is the default value of the DistributedContexts option of functions such as ParallelTable and ParallelMap.
  • Before a parallel computation, definitions of symbols to be evaluated in a parallel kernel will automatically be distributed to all kernels, provided these symbols belong to a context given in the DistributedContexts option.
  • The initial value is $Context, which distributes definitions of all symbols in the current context, but does not distribute definitions of symbols from packages.
Turn off automatic distribution of functions:
Restore the default value:
Turn off automatic distribution of functions:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Restore the default value:
In[4]:=
Click for copyable input
By default, definitions in the current context are distributed automatically:
Do not distribute any definitions:
Distribute definitions for all symbols in all contexts appearing in a parallel computation:
Distribute only definitions in the given contexts:
Restore the default value:
Find all parallel functions that currently use $DistributedContexts:
The value of $DistributedContexts is not used in Parallelize:
Set the value of the DistributedContexts option of Parallelize:
Restore all settings to their default values:
New in 8