Skip to content

Allow to turn off tqdm via environment variables #612

@faroit

Description

@faroit

often I use the same code on my local dev machine and a cluster node. To not mess up the log files I normally turn off tqdm. While this is a simple change in the python code, I think it would actually be more convenient to let tqdm check for environment variables and thereby add some level of system level control over tqdm.

e.g. TQDM=disabled python run.py could quickly disable tqdm in any script.
This should be easy to implement using os.environ.get(). I can compile a PR if you like this proposal

  • I have visited the [source website], and in particular
    read the [known issues]
  • I have searched through the [issue tracker] for duplicates

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions