I can't seem to figure out how to dynamically output a variable that is being used in a parallel evaluation. Below is an example function that demonstrates my problem.
TestCount[n_Integer] := Module[{bar, i},
bar = PrintTemporary[Dynamic[i], " ", ProgressIndicator[Dynamic[i/n]], " ", n];
Do[(*Nothing Really*), {i, n}];
];
Running TestCount[123456789]
works as expected and prints a nice temporary progress bar, but running it in parallel with ParallelMap[TestCount, {123456789, 98765432}]
doesn't properly print the value of i
, but instead prints i$208
or with some number other than 208
.