Textualize / rich

Rich is a Python library for rich text and beautiful formatting in the terminal.
https://rich.readthedocs.io/en/latest/
MIT License
48.31k stars 1.7k forks source link

[BUG] Transient doesn't work on Live #3228

Open KebabLord opened 7 months ago

KebabLord commented 7 months ago

I'm trying to use Table>Panel>Group like this:

progress_table = Table.grid()
progress_table.add_row(
    Panel.fit(
        Group(x_progress,y_progress),
        title="Overall Progress",
        border_style="green",
        padding=(2, 2))
)
with Live(progress_table):
    ...

Everything works as expected, except: After x_progress is completed and altough transient is set to True, x_progress doesn't disappear from the table after task is completed. performing x_progress.update(task_id,visible=False) or x_progress.stop() doesn't work either.

I'm aware that tables aren't intended to be used dynamically but if progress works successfully, why transient or task hide doesn't?

Platform Debian:12 py:3.9 rich:13.6.0

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() ```
github-actions[bot] commented 7 months ago

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory