Creating Data Apps using
Python
Nithish Raghunandanan
@nithishr
7th February 2021
FOSDEM’ 21
About Me
● Data Engineering ⚙
● Like to Prototype 🛠
● Build in
● Organize PyData Munich
● Love to Travel ✈
● Find me @nithishr
Wild West of Javascript
● Lots of Frameworks /
Libraries
● Paradox of Choice
Streamlit
● Turn Data Scripts into Web
Apps
● Interactive
● No Frontend Experience
Required
● Easy to Deploy
Streamlit
Compatibility with Major Frameworks / Libraries
Streamlit Use Cases
● Creating an Interface for Machine Learning
● Visualizing Data
Interface for Machine Learning
Normal Workflow
Streamlit Workflow
● Build Model
● Build Model
● Light Wrapper in Flask /
● Integrate Streamlit
FastAPI
Components for UI
● Frontend in HTML / JS / CSS
Interface for Machine Learning
● Interface for Image Net
Image Classification
● 3 Lines of Streamlit Magic ✨
● Similar to CLI Parser
Demo: https://youtu.be/1y1o4XoFIuA
Visualizing Data
● Notebooks
● Presentations
● Scripts
● Code
● Reports in Tableau
● Web Apps?
Jupyter Notebooks
● Great for Experimentation
● Graphs & Visualizations
● Storytelling using Data
● Customize with Code
● “I don’t like notebooks” - Joel Grus
Can you Visualize your Google Maps Data?
Can you Visualize your Google Maps Data?
● Clean / Standardize Data
○ Latitude, Longitude, Timestamps
● Add Background Information
○ Images from
○ Random Images based on Location
● Histograms
● Heatmaps
Can you Visualize your Google Maps Data?
Can you Visualize your Google Maps Data?
Demo: https://youtu.be/ZFIviSlB4ZA
Alternatives
Pick your friend
Observations
Pros Cons
● Interactive ● No built in
● Customizable Authentication
● Deployment is easy ● Early stages of
● Active Community Streamlit Sharing
Good to have for Data Scientists
Conclusion
● Great for Data Scientists
● Showcase Solutions
● No need to worry about
Javascript
References
● Code:
○ Machine Learning UI
https://github.com/nithishr/streamlit-ml-demo
○ Travel Data Visualization
https://github.com/nithishr/streamlit-data-viz-demo
● Examples:
○ Streamlit Gallery
Nithish Raghunandanan
hi@nithishr.com
blog.nithishr.com
@nithishr