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

Written by databug | Published 2022/01/31
Tech Story Tags: streamlit | python | frontend | create-a-front-end | python-program | python-programming | learn-python-programming | the-art-of-python-programming | web-monetization

TLDRAn 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!via the TL;DR App

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)

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

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

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!


Written by databug | Data Scientist who loves anything Data. From South Korea
Published by HackerNoon on 2022/01/31