1
$\begingroup$

Consider a table

N=1000000;
table=Table[{i,f[i]},{i,1,N,1}]

Is it possible to create a progress bar for being able to see how many rows of table are already evaluated?

$\endgroup$
1
  • 4
    $\begingroup$ Don't use N as a variable. $\endgroup$
    – ktm
    Commented Jun 4, 2019 at 15:29

1 Answer 1

4
$\begingroup$
n = 1000000;
Monitor[table = Table[{i, f[i]}, {i, 1, n, 1}];, i]

or, more fancy:

Monitor[table = Table[{i, f[i]}, {i, 1, n, 1}];, 
  ProgressIndicator[i, {0, n}]]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.