I am using a lot of ParallelTable and want to avoid wrapping it in a Monitor call each time. Since each of the calls inside ParallelTable will already consume considerable time, I do not mind the overhead of the monitoring.
Here is what I tried (which isn't working):
monitoredParallelTable[expr_, {x_,xmin_,xmax_,xstep_}]:=Module[
{counter,tmp},
SetSharedVariable[counter];
Monitor[
tmp=ParallelTable[counter++;expr,{x,xmin,xmax,xstep}],
Row[{ProgressIndicator[counter,{xmin,xmax}]}]];
Return[tmp];
];
counterequal to zero in theModuleinitialization... – kale Jun 16 '15 at 13:18ResourceFunction[“DynamicMap”]– M.R. Apr 12 '20 at 23:10