HSMA - Web Apps with Streamlit
Deployment
45
(Coming Soon!) Deploying to an On-premises Server
Preface
An Introduction to Streamlit
1
Hello World (Wide Web)!
Outputs
2
An Introduction to Loading and Displaying Data
3
Text, Markdown, and Titles
4
Images and Videos
5
Info, Success, Warning and Error Boxes
6
Dataframes
7
Static Charts
8
Interactive Charts
9
Metrics and Dials
10
Static Maps
11
Interactive Maps
12
Additional Output Components
User Inputs
13
Basic Inputs
14
An Overview of Available Input Types
15
Uploading Data Files, Images and More
16
Bidirectional Inputs - Dataframes, Charts and Maps
17
Editable Dataframes
Downloading Outputs
18
Downloading tabular data files (e.g. pandas dataframes)
19
Downloading Images and Charts
20
Downloading Static Maps
21
Downloading Interactive Maps
Layout
22
Wide Layout, Page Tab Titles and Favicons
23
Page Dividers
24
Columns
25
Sidebar
26
Tabs
27
Expanders
28
Multipage Apps
Styling
29
App Colours
30
Logos
31
Fonts
Controlling Application Flow
32
Adding a ‘Run’ Button
33
Partial Reruns (fragments)
34
Custom Page Navigation Buttons
Advanced Concepts
35
Reducing Load Time with Caching
36
Persisting Data Across Pages and Runs with Session State
37
Callbacks
38
(Coming Soon!) Memory Management
39
(Coming Soon!) User Authentication/Login
40
(Coming Soon!) Secrets
41
Persisting data between sessions
Deployment
42
Deploying to Streamlit Community Cloud
43
Deploying to Github Pages with Serverless Streamlit (stlite)
44
(Coming Soon!) Making a Desktop App with Serverless Streamlit (stlite)
45
(Coming Soon!) Deploying to an On-premises Server
Project 1 - DES App
46
The Discrete Event Simulation (DES) Code
47
A simple DES frontend
48
Adding a run button
49
Splitting the app and DES code
Exercises
50
Exercise 1: Into the Future
51
Exercise 2a: Hello Streamlit!
52
Exercise 2b: Wordcloudy with a chance of meatballs
53
Exercise 3: Double Dash!!(boards)
54
Exercise 4: Fulfil your DEStiny
55
Exercise 5: DEStiny’s Child
56
Exercise 6: DESpite Everything, It’s Still You
57
Exercise 7: Take Me To The Clouds Above
Additional Resources
58
(Coming Soon!) Example Streamlit Apps
59
Streamlit Cheat Sheet
Deployment
45
(Coming Soon!) Deploying to an On-premises Server
45
(Coming Soon!) Deploying to an On-premises Server
44
(Coming Soon!) Making a Desktop App with Serverless Streamlit (stlite)
46
The Discrete Event Simulation (DES) Code