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

leave option is not working #3

Open
maremun opened this issue Feb 28, 2019 · 1 comment
Open

leave option is not working #3

maremun opened this issue Feb 28, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@maremun
Copy link

maremun commented Feb 28, 2019

Setting option keep=False does not affect the behavior of the printing of the inner track.

@evfro evfro added the enhancement New feature or request label Feb 28, 2019
@evfro
Copy link
Owner

evfro commented Feb 28, 2019

Thanks for reporting!
Yes, sorry, the option is inactive yet. I'll add support for this feature in the future.

For now, if your internal loop doesn't change its length, you can keep it with the help of the cycle option:

from ipypb import track
from time import sleep

pb = track(total=10, cycle=True) # fix internal loop progressbar
while True: # external loop
    sleep(0.2)
    for i in pb: # start over on each external loop iteration
        sleep(0.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants