-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Colored Progress Bars #450
Labels
Milestone
Comments
colours seem a bit distracting. If you do want them: from tqdm import trange
from colorama import Fore
for i in trange(int(7e7),
bar_format="{l_bar}%s{bar}%s{r_bar}" % (Fore.BLUE, Fore.RESET)):
pass |
Both above mentioned methods are not working with notebook, any idea why? |
notebooks ( https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#IntProgress |
Right... should be possible: jupyter-widgets/ipywidgets#2982 (comment) from tqdm.notebook import tqdm, trange
with trange(int(1e7)) as pbar:
pbar.container.children[-2].style.bar_color = '#ffff00' # or 'yellow'
for i in pbar:
pass TODO: make this easier |
casperdcl
added
p3-enhancement 🔥
Much new such feature
submodule-notebook 📓
Much web such IDE
to-merge ↰
Imminent
labels
Sep 27, 2020
Merged
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
With a few tweaks in the code I managed to add a color argument to tqdm.
Is this already an implemented feature ? Anyone likes it ?
The text was updated successfully, but these errors were encountered: