nteract / papermill

📚 Parameterize, execute, and analyze notebooks
http://papermill.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
5.78k stars 422 forks source link

Tqdm auto no progress bar #617

Open quancore opened 3 years ago

quancore commented 3 years ago

🐛 Bug

I am using tqdm auto in my notebook however my progress bar is not progressing, it stays at zero. I have set log_output True and progress_bar True but it still the same.

MSeal commented 3 years ago

Sorry I missed this issue when it was reported.

In what context is this running? I get progress bar with default arguments from within a notebook in jupyter classic. Have you tried upgrading your dependencies in the environment?

cgebbe commented 1 year ago

I have the same issue. Given the following notebook

from tqdm.auto import tqdm
import time

for x in tqdm(range(3)):
    print(x)
    time.sleep(1)

when executing it using papermill --log-output --progress-bar tmp.ipynb out.ipynb, then the progress bar does not update. A simple fix is to instead import from tqdm import tqdm.

NOTE: Using papermill 2.4.0, tqdm 4.65.0, python 3.10.6 on a Ubuntu OS.

lartiguebe commented 7 months ago

Same problem here @cgebbe , did you find a solution ?