-
Notifications
You must be signed in to change notification settings - Fork 45
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
Replacing our progress bar with tqdm #398
Comments
It is appealing if by using tqdm we can make SoS source code shorter :) |
Yeah, and it should be easy to replace, especially with the I will test this module when I get a chance (I am testing simuPOP for its next release), you can do it if you feel like coding now. |
Trying it out -- the problem below is not always reproducible but is rather weird:
"AttributeError: module 'blessings' has no attribute 'Terminal'" is apparently not true. But I do not understand why it complains and why it is not reproducible at all times. I am sure you've tested the new progress bar but you did not see the problem. |
I am looking into replacing blessings as well.
…Sent from my cellphone
On Feb 3, 2017 8:22 AM, "gaow" ***@***.***> wrote:
Trying it out -- the problem below is not always reproducible but is
rather weird:
Exception in thread Thread-3::1: 67%|█████████████████████████████████████████████▎ | 2/3 [00:00<00:00, 9.44it/s]
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/opt/miniconda3/lib/python3.5/site-packages/sos-0.9.3.1-py3.5.egg/sos/utils.py", line 799, in run
self.term = blessings.Terminal(stream=sys.stderr)
AttributeError: module 'blessings' has no attribute 'Terminal'
"AttributeError: module 'blessings' has no attribute 'Terminal'" is
apparently not true. But I do not understand why it complains and why it is
not reproducible at all times. I am sure you've tested the new progress bar
but you did not see the problem.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#398 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJbmIOrETOezKwOrBBg0npJibs5an2hVks5rYzg9gaJpZM4L0qS_>
.
|
On my end progress bars still are out of place running multiple pipelines. It looks like it does not refresh properly -- in the end I expect one 100% solid bar but I get multiple lines, some empty, some 33%, some 67% and in the end 100%. |
Should be fine now. |
It is good that tqdm has everything that we need, although I still filed a bug for it. |
There is a slight issue, eg running this:
with |
This problem is extremely tricky and tqdm has had a lot of discussions on such things. The problem here I guess is that the master progress bar finishes a return but it returns to the next line, not a newline. You can submit a bug report to tqdm with the following code and see what the authors would say
In their own example, they added
at the end. Note the |
Yes I think this is their current solution as of 5 days ago: Is it what we should too adapt? Even with |
What solution? (I did not read through the ticket). You can patch |
The solution is the last post of the ticket |
Ok. Let us keep this ticket open and wait for their resolution. |
No progress after a few months. |
We have done a lot to use progress bar in a multiprocessing setting, but tqdm seem to also have such a problem. However, it makes sense to use tqdm, which is supposed to have less overhead (at least they take overhead seriously) than our progress bar.
Another side of the story is 'it is not broken, do not fix it'.
The text was updated successfully, but these errors were encountered: