Animate and update elements
Sometimes you display a chart or dataframe and want to modify it live as the app runs (for example, in a loop). Some elements have built-in methods to allow you to update them in-place without rerunning the app.
Updatable elements include the following:
Jt.empty
containers can be written to in sequence and will always show the last thing written.
Jt.empty
containers
Jt.empty
can hold a single element. When you write any element to a Jt.empty
container, Jeamlit discards its previous content and
displays the new element.
If you want to update a set of elements, use
a plain container (Jt.container()
) inside Jt.empty
and write contents to the plain container. Rewrite the plain container and its
contents as often as desired to update your app's display.
Still have questions?
Go to our discussions forum for helpful information and advice from Jeamlit experts.