How to build a web application without any front-line coding

Streamlit is an open-source app framework for Machine Learning and Data Science teams. Create beautiful data apps in hours, not weeks. All in pure Python.

The possibilities with Streamlit library are infinite. Building a dashboard is probably the simplest thing you can dabble using this library.

You can find the end product over here on Heroku: https://faker-streamlit.herokuapp.com/

Importing the necessary libraries

After generating 500 data points from the Faker library including latitude and longitude, it’s time to build our interactive dashboard.

Creating a histogram from plotly express

Creating points on world map

With lat and lon in the dataframe, you can now create quick geospatial scatterplots with just one line of code. If you need more control, you’ll need to use st.pydeck_chart which I have not tried.

Creating a wordcloud

Downloading the dataset

To display the dataframe on Streamlit, all it took was just one line of code. But I thought “Wouldn’t it be awesome if I could download the data onto my local computer?” It didn’t take me long to find a ready solution on Google.

Where to find the code

The code can be found over here: https://github.com/hxkoey/streamlit-example

Final Thoughts

Since I started coding about a year ago, I have been using Jupyter notebooks on my local computer which has been fantastic so far. As I progressed along this journey, I came to realise that there are times where I had to scour the Internet for the same piece of stackoverflow which can get a little bit frustrating.

So here I am, finally documenting my journey. Like what Gary Vee often preached, “Document. Don’t create.” 💌

Building products using python programming

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store