You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was writing a simple progress indicator for use internally in Spyder and found out that carriage returns don't always work, meaning that trying to print over lines in the console sometimes appends the new text instead. When I discovered this, I took out Spyder from the equation and tested directly in Qt Console. I experienced the same problem. I then updated Qt Console to the latest version (5.3.1), and the problem got better, however it still occurred and a new issue popped up where text would be updated much less often (sometimes not at all until the final output). I have tested this in the windows command line, and it behaves exactly as expected. I have tested this on 2 systems, both running windows (10 and 11).
Expected behavior
Carriage returns always return the cursor to the start of the line and the console's output is updated for each new print.
Actual behavior
Carriage returns are sometimes not taken into account, and text is appended when it should not be. The console's output updates are also delayed.
Reproducing the behavior
# If this snippet does not show issues, run it more times or add iterations.foriinrange(1000000):
print(f'{i} ', end='\r') # Flushing makes the issue worse # Example output:# 999999 142189 773780
Hey @poipoi300, thanks for reporting. This is basically a duplicate of issue #350.
It'd be great if you could give us a hand to improve our ANSI pre-processor. On that issue you can find the minimal info to do it, in case you are interested.
Context
I was writing a simple progress indicator for use internally in Spyder and found out that carriage returns don't always work, meaning that trying to print over lines in the console sometimes appends the new text instead. When I discovered this, I took out Spyder from the equation and tested directly in Qt Console. I experienced the same problem. I then updated Qt Console to the latest version (5.3.1), and the problem got better, however it still occurred and a new issue popped up where text would be updated much less often (sometimes not at all until the final output). I have tested this in the windows command line, and it behaves exactly as expected. I have tested this on 2 systems, both running windows (10 and 11).
Expected behavior
Carriage returns always return the cursor to the start of the line and the console's output is updated for each new print.
Actual behavior
Carriage returns are sometimes not taken into account, and text is appended when it should not be. The console's output updates are also delayed.
Reproducing the behavior
IPython.sys_info() output
The text was updated successfully, but these errors were encountered: