You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per title there is no longer output difference between set_description() and set_description_str() and only way to remove : is directly through updating bar_format.
fromtqdmimporttqdmimportrequestsurl="url"response=requests.get(url, stream=True)
description="text"withopen(f"out.bin", "wb") ashandle:
# Works as expectedprogress_bar=tqdm(total=int(response.headers.get("content-length", "0")), unit="iB", unit_scale=True, position=None, bar_format=description+"{percentage:3.0f}%|{bar}{r_bar}")
# No longer removes colonprogress_bar=tqdm(total=int(response.headers.get("content-length", "0")), unit="iB", unit_scale=True, position=None)
progress_bar.set_description_str(description)
fordatainresponse.iter_content(chunk_size=64*1024):
progress_bar.update(len(data))
handle.write(data)
This has been broken for a while now, did some api change, as documentation still mentions using set_description_str() instead?
The text was updated successfully, but these errors were encountered:
read the [known issues]
environment, where applicable:
As per title there is no longer output difference between
set_description()
andset_description_str()
and only way to remove:
is directly through updatingbar_format
.This has been broken for a while now, did some api change, as documentation still mentions using
set_description_str()
instead?The text was updated successfully, but these errors were encountered: