File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ iterable with "tqdm(iterable)", and you're done!
2323
2424 Here's what the output looks like:
2525
26- 76%\| ████████████████████\ \| 7641/10000 [00:34<00:10,
27- 222.22 it/s]
26+ ``76%|████████████████████████████ | 7568/10000 [00:33<00:10, 229.00it/s] ``
2827
2928``trange(N) `` can be also used as a convenient shortcut for
3029``tqdm(xrange(N)) ``.
@@ -708,7 +707,7 @@ precompute this by ourselves:
708707 ``process_content_with_progress2() `` is better than the naive approach because
709708now we have predictive information:
710709
711- 50%|████████████\ \ | 2/4 [00:00<00:00, 4.06it/s]
710+ `` 50%|████████████ | 2/4 [00:00<00:00, 4.06it/s] ``
712711
713712However, the progress is not smooth: it increments in steps, 1 step being
7147131 file processed. The problem is that we do not just walk through files tree,
@@ -750,7 +749,8 @@ Below we implement this approach using a manually updated ``tqdm`` bar, where
750749 And here is the result: a much smoother progress bar with meaningful
751750predicted time and statistics:
752751
753- 47%|████████████\ \| 152K/321K [00:03<00:03, 46.2KB/s]
752+ ``47%|████████████ | 152K/321K [00:03<00:03, 46.2KB/s] ``
753+
754754
755755
756756Contributions
You can’t perform that action at this time.
0 commit comments