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