Edit this with a clear and concise description of what the bug.
Provide a minimal code example that demonstrates the issue if you can. If the issue is visual in nature, consider posting a screenshot.
from rich.live import Live
from tqdm.auto import tqdm
import time
# Tqdm `leave` works as expected
print("Before")
for i in tqdm(range(10), leave=False):
time.sleep(0.1)
print("After")
# Rich `transient` does not work as expected
print("Before")
with Live("", transient=True) as live:
for i in range(10):
time.sleep(0.1)
live.update(f"Processing #{i}")
live.refresh()
print("After")
Describe the bug
Edit this with a clear and concise description of what the bug.
Provide a minimal code example that demonstrates the issue if you can. If the issue is visual in nature, consider posting a screenshot.
https://github.com/user-attachments/assets/cd7aac19-4fab-46a0-8fd3-77d2ac505d76
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using? I may ask you to copy and paste the output of the following commands. It may save some time if you do it now. If you're using Rich in a terminal: ``` python -m rich.diagnose pip freeze | grep rich ``` If you're using Rich in a Jupyter Notebook, run the following snippet in a cell and paste the output in your bug report. ```python from rich.diagnose import report report() ``` ╭──────────────────────