Lightning-AI / Lightning-AI/pytorch-lightning

Hide progress bars on HPC logging environments but keep in interactive terminals

Open
#14,394 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature pl progress bar: tqdm
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

`tqdm(disable=None)` allows for the suppression of the output in non-tty (e.g. CI/log files) but keeps the progress bars in terminal (i.e. tty mode). I believe this is a simple change that will improve the progress bar functionality.

see doc: https://git.io/JnBOi

cc @borda @awaelchli @rohitgr7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the issue's tqdm(disable=None) reference and the linked documentation first, then locate the progress-bar entry point used by Lightning. Confirm the current behavior in interactive terminals and HPC or non-TTY logging environments; done means bars remain interactive while being suppressed in logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.