Why: The TODO comments in the codebase show there are known issues with certain terminals (cloud consoles, Docker, some IDEs) that don't support \r properly, causing multiple lines instead of one progress bar.
Description:
Some environments (AWS CloudWatch, certain CI logs, K8s logs) don't properly handle carriage returns. Users currently have to set TQDM_POSITION=-1 manually. tqdm should auto-detect problematic environments and fall back to a mode that works.
Example use case:
python
Should automatically detect cloud console and adjust behavior
for i in tqdm(range(1000)):
process(i) # Works in any terminal without manual config
Why: The TODO comments in the codebase show there are known issues with certain terminals (cloud consoles, Docker, some IDEs) that don't support \r properly, causing multiple lines instead of one progress bar.
Description:
Some environments (AWS CloudWatch, certain CI logs, K8s logs) don't properly handle carriage returns. Users currently have to set TQDM_POSITION=-1 manually. tqdm should auto-detect problematic environments and fall back to a mode that works.
Example use case:
python
Should automatically detect cloud console and adjust behavior
for i in tqdm(range(1000)):
process(i) # Works in any terminal without manual config