Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: pub@towardsai.net
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab VeloxTrend Ultrarix Capital Partners Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Our 15 AI experts built the most comprehensive, practical, 90+ lesson courses to master AI Engineering - we have pathways for any experience at Towards AI Academy. Cohorts still open - use COHORT10 for 10% off.

Publication

Streamlit – Revolutionizing Data App Creation
Data Science   Programming

Streamlit – Revolutionizing Data App Creation

Last Updated on January 6, 2023 by Editorial Team

Last Updated on November 9, 2020 by Editorial Team

Author(s): Shubham Saboo

Data Science, Programming

An elegant and efficient framework to build and share data apps within minutes.

Streamlit – Revolutionizing Data App Creation

Before starting let's get the fact straight — Every Data Scientist isn’t a good frontend engineer. But in the world where “seeing is believing”, the aesthetics of your project is as important as the technology behind it. What can you do in the situation when you have an amazing data app, but no frontend expertise to present it to a larger audience.

Streamlit to the rescue!

Streamlit is an open-source python library capable of turning data scripts into sharable web applications within minutes. It makes it very easy to build custom web applications with minimal efforts and zero knowledge of front-end design frameworks (all in python). It is a great way to create simple yet elegant interactive user interfaces for your data projects.

Streamlit wraps the cool Machine Learning model into a shiny package in order to present it to a larger audience as an app.

Streamlit based Application in Action…

Getting Started

Streamlit is available as a standard python library at PyPI, which can be easily installed using either pip or conda depending on the python environment. Following are the commands for installing Streamlit:

To check if Streamlit is installed correctly, run this simple command in your terminal:

Why makes Streamlit unique?

The idea behind streamlit is to make data app creation as easy as writing a python script.

Within very little time, it has created a flourishing community of ML engineers and data scientists from around the world, which keeps the discussion forum lively and updated so you don't have to waste hours and hours debugging issues or adding a new feature to your application. The other key features of streamlit are as follows:

  • Embrace Python Scripting: Streamlit applications are really just scripts that run from top to bottom. There’s no hidden state and you can factor your code with function calls. If you know how to write Python scripts, you are all set for creating cool Streamlit apps. Let's look at an example in action:
Simple Streamlit Application
  • Interaction comes in handy: Streamlit treats a widget as a variable, so adding a widget is as simple as declaring a variable. There is no need to write a backend code, define routes, handle HTTP requests, etc. Every interaction simply reruns the script from top to bottom. This approach leads to a really clean code:
An Interactive Streamlit app in action…
  • Instant Deployment: Streamlit also provides a platform to effortlessly share your app over the web to a larger audience. It provides simple GitHub integration which allows you to deploy the code directly from your GitHub repository with minimal effort.

Some Really Cool Examples

Streamlit as a community believes in open-source, so most of the projects created by the members are made open-source. Now we will go through some really cool projects which are created with Streamlit:

  • Real-Time Object Detection System: This application is built by using Udacity’s Self Driving Car dataset. It is capable of detecting objects in real-time, it uses YOLO object detection algorithm in the backend interweaved with Streamlit in the frontend.
Source Code
Source Code
  • Geographic Data Browser for NYC: This application uses Uber pickup data of New York City to interactively visualize uber pickups and passenger's journey across NYC.
Source Code

Conclusion

Streamlit is becoming a de-facto choice for data scientists and ML engineers these days to quickly build and share proofs-of-concept with a larger audience in an aesthetically pleasing and interactive environment rather than being stuck in the web of two-dimensional Jupiter notebook environment. Streamlit is user-friendly and can be learned with zero to minimal effort by someone already familiar with python scripting.

Also +1 for the great documentation prepared by the Streamlit team!

If you would like to learn more or want to me write more on this subject, feel free to reach out…

My social links: LinkedIn| TwitterGithub

If you liked this post or found it helpful, please take a minute to press the clap button, it increases the post visibility for other medium users.


Streamlit – Revolutionizing Data App Creation was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

Published via Towards AI


Take our 90+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Towards AI has published Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!


Discover Your Dream AI Career at Towards AI Jobs

Towards AI has built a jobs board tailored specifically to Machine Learning and Data Science Jobs and Skills. Our software searches for live AI jobs each hour, labels and categorises them and makes them easily searchable. Explore over 40,000 live jobs today with Towards AI Jobs!

Note: Content contains the views of the contributing authors and not Towards AI.