App model summary

Now that you know a little more about all the individual pieces, let's close the loop and review how it works together:

  1. Jeamlit apps are Java class main methods that run from top to bottom.
  2. Every time a user opens a browser tab pointing to your app, the main method is executed and a new session starts.
  3. As the method executes, Jeamlit draws its output live in a browser.
  4. Every time a user interacts with a widget, your method is re-executed and Jeamlit redraws its output in the browser.
    • The output value of that widget matches the new value during that rerun.
  5. Methods use the Jeamlit Cache to avoid recomputing expensive functions, so updates happen very fast.
  6. Session State lets you save information that persists between reruns when you need more than a simple widget.
  7. Jeamlit apps can contain multiple pages, which are defined in separate Java classes.
The Jeamlit app model
forum

Still have questions?

Go to our discussions forum for helpful information and advice from Jeamlit experts.