Session lead: Sammi Rosser
Today we're going to explore some more advanced features of the Streamlit framework, as well as deploying our app on Streamlit's free hosting - the Streamlit community cloud.
In this second Streamlit session, we cover
- how to create a interactive app frontend for a simple discrete event simulation (DES) script
- creating a sidebar for our inputs or other Streamlit elements
- preventing functions from running until a button is clicked
- separating your app code from your other code
- splitting your app into multiple pages
- setting custom app colours and other simple theming parameters with the config.toml file
- adding a logo to your app
- using custom css for advanced theming, including changing fonts
- caching data and other reusable elements with the caching decorators to speed up your app and reduce memory usage
- using session state and callbacks to persist data across pages and runs
- setting up parts of your app to rerun independently with the fragment decorator
- deploying an app to the Streamlit community cloud
This session makes use of the hsma_webdev environment