STREAMLIT

Nigar Esra Kın
Machine Learning Turkiye
2 min readFeb 1, 2022

In this article, I want to share with you like this questions and answers about Streamlit;

  • What is the Streamlit?
  • How Streamlit is works?
  • How to install Streamlit on your preferred operating system?
  • How to create your first Streamlit app?

So, let’s get started!

What is the Streamlit and how it’s works?

Streamlit is an open source python library that can quickly convert data scripts into web applications.

Helps you collect all visualization in one place and give you better chance compare visualization more conveniently.

Working with Streamlit quietly simple. You’re working on a data project and you want to present in the project best way possible with visualization. In this case, if you prefer to work with Streamlit in your projects, then it will make you more professional.

Source: Google

In fact, we mostly use python in the Streamlit and Markdown environment, but if we want to go further, it’s possible benefit from HTML and CSS support.

By the way, in Streamlit it’s possible to visualize both inputs and outputs.

How to install Streamlit on your preferred operating system?

For installation;

pip install streamlit

You don’t have to do anything extra.

Then we will create a new Python file(I called streamlit_ex) and start usage for Linux terminal.

-> touch streamlit_ex.py

-> run streamlit_ex.py

If a URL comes up after running it, everything is all right!

I prefered working on Jupyter Notebook, firstly I start with the ‘import streamlit

It’s possible to add titles, texts, subheaders, code blocks, captions, tables, graphs depending on the project we’re working on.

I put a small example below for you to see how the outputs works.

From now on, creativity is up to you!

You can reach more information about Streamlit, please review from here.

--

--