Skip to content
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

[UX] change tqdm progress bar color to green #8831

Merged
merged 8 commits into from
May 21, 2024
4 changes: 2 additions & 2 deletions packages/hagrid/hagrid/quickstart_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def fetch_notebooks_for_url(
print(nb)

overwrite_all = False
for notebook_url in tqdm(notebooks):
for notebook_url in tqdm(notebooks, colour="green"):
file_path, _, overwrite_all = quickstart_download_notebook(
url=notebook_url,
directory=os.path.abspath(directory + os.sep + str(url_dir) + os.sep),
Expand Down Expand Up @@ -184,7 +184,7 @@ def fetch_notebooks_from_zipfile(

extracted_files = []
overwrite_all = False
for notebook in tqdm(notebooks):
for notebook in tqdm(notebooks, colour="green"):
file_path, _, overwrite_all = quickstart_extract_notebook(
zip_file=path,
name=notebook,
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/client/domain_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def upload_dataset(self, dataset: CreateDataset) -> SyftSuccess | SyftError:
)
prompt_warning_message(message=message, confirm=True)

for asset in tqdm(dataset.asset_list):
for asset in tqdm(dataset.asset_list, colour="green"):
print(f"Uploading: {asset.name}")
try:
twin = TwinObject(
Expand Down
1 change: 1 addition & 0 deletions packages/syft/src/syft/store/blob_storage/seaweedfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def write(self, data: BytesIO) -> SyftSuccess | SyftError:
with tqdm(
total=total_iterations,
desc=f"Uploading progress", # noqa
colour="green",
) as pbar:
for part_no, url in enumerate(
self.urls,
Expand Down
Loading