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.
Once we rerun a Live context manager in a Jupyter notebook, it doesn't automatically refresh.
For example:
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.