warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.86k stars 355 forks source link

TQDM Progress Bar new lines #4465

Open Dandandooo opened 6 months ago

Dandandooo commented 6 months ago

Discord username (optional)

dandandooo

Describe the bug

TQDM progress bars start on a new line every second. It stops the current progress and continues it on the next line.

It does the following (notice time stamps):

Screenshot 2024-03-04 at 3 41 27 PM

When it should do the following:

Screenshot 2024-03-04 at 3 43 08 PM

To reproduce

  1. Setup training using Huggingface Transformers Library in Python (I used RoBERTa Model, but I doubt it matters)
  2. Run training file in terminal using "python .py"

Expected behavior

The progress bar should evolve across a single line.

Screenshots

Warp:

Screenshot 2024-03-04 at 3 41 27 PM

iTerm:

Screenshot 2024-03-04 at 3 43 08 PM

Operating system

MacOS

Operating system and version

MacOS Sonoma 14.3.1

Shell Version

fish 3.6.1

Current Warp version

v0.2024.02.27.08.01.stable_03

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Dandandooo commented 6 months ago

I can upload my code if necessary

dannyneira commented 6 months ago

thanks for letting us know @Dandandooo As a possible workaround, you can run fish and run the command within the subshell. This should show the progress bars correctly, but you'll lose blocks in that session.

will-thorne commented 5 months ago

I have noticed this problem elsewhere - a few specific examples being apt upgrade or the rustlings --watch test suite. I am guessing it is something goofy with how warp is treating line clearing - hope you folks can find a solution. ^ that fish work around is a great find - ty for that!