Skip to content
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

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

Open
2 tasks done
KebabLord opened this issue Dec 10, 2023 · 1 comment
Open
2 tasks done

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

KebabLord opened this issue Dec 10, 2023 · 1 comment

Comments

@KebabLord
Copy link

KebabLord commented Dec 10, 2023

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.

from rich.diagnose import report
report()
Copy link

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

@KebabLord KebabLord changed the title [BUG] Transient doesn't work on Table [BUG] Transient doesn't work on Live Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant