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

Separate colors for complete and in progress bars #846

Closed
sergeysprogis opened this issue Nov 20, 2019 · 4 comments
Closed

Separate colors for complete and in progress bars #846

sergeysprogis opened this issue Nov 20, 2019 · 4 comments
Labels
invalid ⛔ Not-an-issue or upstream (not-our-issue) p2-bug-warning ⚠ Visual output bad

Comments

@sergeysprogis
Copy link

Is it possible to see have different colors for completed bars and bars in progress if I use PyCharm (e.g. green for completed and red for in progress)? Right now all I see is red for everything. Below is an example of how I currently do it in PyCharm.

from tqdm import tqdm
from time import sleep

for _ in tqdm(range(0, 5), desc="Bar 1"):
    sleep(0.5)

for _ in tqdm(range(0, 5), desc="Bar 2"):
    sleep(1)
@casperdcl casperdcl added p4-enhancement-future 🧨 On the back burner submodule ⊂ Periphery/subclasses labels Nov 30, 2019
@songyuc
Copy link

songyuc commented Sep 17, 2020

Hi, @casperdcl , I saw the text color of tqdm is red in PyCharm.
So, can I set it into default color as the normal terminal output?

@casperdcl
Copy link
Sponsor Member

PyCharm always colours stderr red. There are hacks around this: https://stackoverflow.com/questions/20333674/pycharm-logging-output-colours

For example, tqdm(..., file=sys.stdout).

@casperdcl casperdcl added invalid ⛔ Not-an-issue or upstream (not-our-issue) p2-bug-warning ⚠ Visual output bad and removed p4-enhancement-future 🧨 On the back burner submodule ⊂ Periphery/subclasses labels Sep 17, 2020
@songyuc
Copy link

songyuc commented Sep 25, 2020

@casperdcl , thanks sincerely for you help!

@casperdcl
Copy link
Sponsor Member

casperdcl commented Sep 27, 2020

related (coming soon): #1040; haven't tested in PyCharm though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid ⛔ Not-an-issue or upstream (not-our-issue) p2-bug-warning ⚠ Visual output bad
Projects
None yet
Development

No branches or pull requests

3 participants