Tqdm: jupyterlab start new lines while setting the param leave=False

Created on 21 Nov 2019  ·  3Comments  ·  Source: tqdm/tqdm

I use tqdm.notebook.tqdm in two loops. When I set the param leave=True in the seconde loop, it always start a new line as it run over the loop.

duplicate 🗐 invalid ⛔ p2-bug-warning ⚠ submodule-notebook 📓

Most helpful comment

Here I paste my code:

`from tqdm import notebook
import time

for i in notebook.tqdm(range(10)):
for j in notebook.tqdm(range(10), leave=False, desc='Second Loop',position=-1,):
time.sleep(0.05)`

All 3 comments

Here I paste my code:

`from tqdm import notebook
import time

for i in notebook.tqdm(range(10)):
for j in notebook.tqdm(range(10), leave=False, desc='Second Loop',position=-1,):
time.sleep(0.05)`

This is an issue with ipywidgets. I opened an issue there

duplicate of #433

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anntzer picture anntzer  ·  5Comments

jlumpe picture jlumpe  ·  5Comments

techkang picture techkang  ·  4Comments

casperdcl picture casperdcl  ·  5Comments

AliAbdelaal picture AliAbdelaal  ·  4Comments