python enumerate tqdm bar when reading a file? : <p>I can't see the tqdm progress bar when I use this code to iterate my opened file:</p>

<pre><code>        with open(file_path, 'r') as f:
        for i, line in enumerate(tqdm(f)):
            if i &gt;= start and i &lt;= end:
                print("line #: %s" % i)
                for i in tqdm(range(0, line_size, batch_size)):
                    # pause if find a file naed pause at the currend dir
                    re_batch = {}
                    for j in range(batch_size):
                        re_batch[j] = re.search(line, last_span)
</code></pre>

<p>what's the right way to use tqdm here?</p>
