0% found this document useful (0 votes)
21 views

Creating Data Apps in Pure Python

This document discusses Streamlit, an open-source Python library that allows users to turn Python scripts into web apps. Streamlit makes it easy to build machine learning interfaces and visualize data without requiring frontend experience or knowledge of JavaScript. It is compatible with major frameworks like PyTorch and TensorFlow. Some key use cases mentioned include creating interfaces for machine learning models to make predictions and visualizing datasets on maps or with histograms. The document provides examples of visualizing image classification and travel location data with Streamlit. Overall, Streamlit is presented as a good option for data scientists to showcase solutions without having to deal with frontend development.

Uploaded by

abemaybe-sms
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Creating Data Apps in Pure Python

This document discusses Streamlit, an open-source Python library that allows users to turn Python scripts into web apps. Streamlit makes it easy to build machine learning interfaces and visualize data without requiring frontend experience or knowledge of JavaScript. It is compatible with major frameworks like PyTorch and TensorFlow. Some key use cases mentioned include creating interfaces for machine learning models to make predictions and visualizing datasets on maps or with histograms. The document provides examples of visualizing image classification and travel location data with Streamlit. Overall, Streamlit is presented as a good option for data scientists to showcase solutions without having to deal with frontend development.

Uploaded by

abemaybe-sms
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

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
[email protected]
blog.nithishr.com
@nithishr

You might also like