paint-brush
How to "Instantly" Create a Front-end for Your Python Programby@databug
10,284 reads
10,284 reads

How to "Instantly" Create a Front-end for Your Python Program

by AndrewJanuary 31st, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

An easy way to get your programs online is the streamlit python package. The package was introduced by one of my favorite youtube channels called “Data Professor” (I strongly suggest checking out his channel) and instantly fell in love with the package. Easy implementation, No javascript what-so-ever just pure python. (Also, it’s open-source!) Open-source. (I will follow up on the step-by-step post should new one please request in the comments!

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to "Instantly" Create a Front-end for Your Python Program
Andrew HackerNoon profile picture


There are times you create this awesome python project that could be run within Juypter notebook or any other IDE that is only accessible to programmers. Then you realize that your program caters to the non-technical team of your company? Yes?


Then you will go to level two, trying to use other packages like pygui or other GUI creating programs just to be going through a learning curve, then, later ending up on the Javascript-React How to page on creating an online analytics tool. (My story but still true and sad)


So the bottom line for me was, “Is there a better and easy way to get your programs online?”


Then after some excruciating search, I finally found this package called “streamlit.” This package was introduced by one of my favorite youtube channels called “Data Professor.” (I strongly suggest checking out his channel), and I instantly fell in love with the package.


Easy implementation, No javascript what-so-ever just pure python. (Also, it’s open-source!)


Did I get you on board? Okay, now for the implementation.

(I will assume that you already have installed all basic programs such as python and pip.)


  1. PIP install streamlit


2. import streamlit


3. Design your inputs and outputs and replace them with streamlit python code.

I like Daniel Lewis’ Cheatsheet better, for starters, so you should check it out. (link)

I like daniel lewis cheat sheet better, for starters



You can check streamlit’s official cheatsheet: https://docs.streamlit.io/library/cheatsheet


4. Voila! Front-end of your data project done!


From the official site!



Now you have this awesome program with the interface that you want.

But if you want to bring it to the world, then I highly suggest you look into “streamlit community” to share your projects!


I will follow up on the step-by-step post should new one. Please request in the comments!


Happy Hacking!