New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notebook: support changing total
#1145
Comments
Hmm that's because there's no initial Anyway in the meantime it's probably better to use the import requests, os
from tqdm.auto import tqdm
eg_link = "https://sample-videos.com/zip/100mb.zip"
response = requests.get(eg_link, stream=True)
with tqdm.wrapattr(open(os.devnull, "wb"), "write",
miniters=1, desc=eg_link.split('/')[-1],
total=int(response.headers.get('content-length', 0))) as fout:
for chunk in response.iter_content(chunk_size=4096):
fout.write(chunk) |
total
Still a bug on Colab today. Any updates? |
This is still an issue in version 4.65.0. Any updates? |
This is literally the same exact code as was presented in the readme page (https://github.com/tqdm/tqdm#hooks-and-callbacks) except instead of
I inputted
The issue I am getting is that the progress bar doesn't update until it finishes to 100% (turns green). Other than that, during the entire duration of the download, this is how the progress bar looks like:
Another thing to point out is that the figures work perfectly fine, it's just the visual interface is stuck at 0% it seems like.
I've tried this on both Google Colab and Jupyter notebook, same issue.
The text was updated successfully, but these errors were encountered: