Skip to content

Bug: The rich rendearables don't work on live mode the second time they are run #87

@santisoler

Description

@santisoler

Once we rerun a Live context manager in a Jupyter notebook, it doesn't automatically refresh.

For example:

import time
from rich.text import Text
from rich.live import Live

text = Text("Blah")
with Live(text) as live:
    for _ in range(5):
        time.sleep(1)
        text.append_text(Text(" blah"))

The second time we run it, it won't automatically refresh. One solution is to add a live.refresh() line when needed, but that doesn't work with Spinners that rely on the automatic refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions