-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
set default tqdm.disable from os.environ #950
Conversation
Allow setting the tqdm.disable option from the environment variables. The default value of `False` is unchanged, as is the expected behavior with `None`.
This would be helpful for my use case, where I'm using a third-party library which has a tqdm bar I'd like to disable but can't modify the library code itself easily. |
Yes, this is exactly where I ran into this issue. I'm using pgmpy, which displays it's loops using the default tqdm behavior, which I would like to disable. |
Looks like this PR has been open for quite some time. @casperdcl Any thoughts on this change? |
A simple use-case for this option is that we are running a big set of code where we have both support to run the exact same code as a cli tool from a users computer and in a hosted environment inside celery. And when we run it in celery, we do not want our logs to be polluted with tdqm loggin output. This option would make it super easy to disable all tdqm logging as we have it in a lot of places in our code and we would just configure our production servers with this environment variable and we are all set. |
Any updates on this PR? This is very useful when running tests and in production. |
Thanks everyone for your patience! Just released |
Allow setting the tqdm.disable option from the environment variables. The default value of
False
is unchanged, as is the expected behavior withNone
.Resolves issues laid out it #619 #614 #612. Similar to the request in #370.
Less important but also useful:
read the known issues
environment, where applicable: