-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
c3-small 🕒Complexity mediumComplexity mediump3-enhancement 🔥Much new such featureMuch new such featureto-merge ↰ImminentImminent
Milestone
Description
- I have marked all applicable categories:
- documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
- new feature request
- I have visited the source website, and in particular
read the known issues - I have searched through the issue tracker for duplicates
- I have mentioned version numbers, operating system and
environment, where applicable:import tqdm, sys print(tqdm.__version__, sys.version, sys.platform)
4.64.0 3.8.13 (default, Apr 1 2022, 11:52:33)
[Clang 12.0.0 (clang-1200.0.32.29)] darwin
Hi,
tqdm
is very useful during development to understand the progress of your code. However, if this code is deployed somewhere that doesn't have a regular tty, e.g. CI systems or servers, the progress bar could interfere with the regular logging of the application, e.g. for ingestion into systems like AWS CloudWatch, SumoLogic, Spluk or others.
I think it would be nice if tqdm
could be configured to be a no-op. For example using an environment variable:
python my-script.py # tqdm progress bar emitted as usual
env TQDM_DISABLE=true python my-script.py # tqdm does nothing
hadim, mnhrdt, 0x26res, FelixSchwarz, azachar and 3 more
Metadata
Metadata
Assignees
Labels
c3-small 🕒Complexity mediumComplexity mediump3-enhancement 🔥Much new such featureMuch new such featureto-merge ↰ImminentImminent