Although I cannot reproduce this in my environment, it looks like tqdm is trying to use a height of 20 rows to display the status bars.
The parameter connected to this is "nrows" (see documentation of its init method)
Here, the default fallback value is 20 rows (which would fit to your experience). Try adapting it accordingly, e.g.:
from tqdm import tqdm
for i in tqdm(range(10), nrows=4): pass
for i in tqdm(range(10), nrows=4): pass
for i in tqdm(range(10), nrows=4): pass
for i in tqdm(range(10), nrows=4): pass
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…