Skip to content

Print overwrites previous output when separated by tab and time. #7611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Wrzlprmft opened this issue Mar 14, 2025 · 2 comments
Closed

Print overwrites previous output when separated by tab and time. #7611

Wrzlprmft opened this issue Mar 14, 2025 · 2 comments
Labels
bug status:Needs Triage Applied to issues that need triage

Comments

@Wrzlprmft
Copy link

Description

Under certain conditions, print statements overwrite the outcome of previous print statements.

Reproduce

Run the following code in a notebook cell:

from time import sleep
print("")
print("a",end="\t")
sleep(0.4)
print("b")

This results in a being printed and then overwritten by b.

Expected behavior

Both, a and b get printed (and not erased).
This is also how it works in Python and iPython.

Context

  • Operating System and version: Arch Linux
  • Browser and version: Firefox
  • Jupyter Notebook version: 7.3.2
Troubleshoot Output Will provide if deemed necessary.
Command Line Output Nothing that seems unusual.
@Wrzlprmft Wrzlprmft added bug status:Needs Triage Applied to issues that need triage labels Mar 14, 2025
@Wrzlprmft Wrzlprmft changed the title Print erases previous statements when separated by tab and time. Print overwrites previous output when separated by tab and time. Mar 14, 2025
@krassowski
Copy link
Member

Jupyter Notebook version: 7.3.2

Can you test with v7.3.3? I would expect jupyterlab/jupyterlab#17369 which was included in 7.3.3 to fix it.

@Wrzlprmft
Copy link
Author

Yes, it is fixed. That’s what I get for being interrupted for a few hours when writing a bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants