Membuat Aplikasi dengan Streamlit

Streamlit adalah python library untuk membuat aplikasi data scripts menjadi web apps yang mudah digunakan tanpa pengetahuan tentang front-end.

Contoh aplikasi Web Apps Dataframe yang dibuat menggunakan python library Streamlit
Contoh aplikasi Web Apps Dataframe yang dibuat menggunakan python library Streamlit
Streamlit Web Apps

Persiapan

1. Python 3.5 keatas

2. Virtualenv (Optional)

python38 -m pip install virtualenv

Membuat Project

1. Mengaktifkan Environment

F:\project>python38 -m virtualenv venv
F:\project>venv\Scripts\activate
(venv) F:\project>

2. Install Streamlit

(venv) F:\project>python38 -m pip install streamlit
(venv) F:\project>streamlit hello
(venv) F:\project>streamlit run app.py

Streamlit Widget

1. Text Input

import streamlit as sttxt_input = st.text_input("label", "default value")
txt_area = st.text_area("label", "default value")

2. Interactive Button

import streamlit as stif st.button('Press Me'):
st.write('You Pressed')
else:
st.write('You Not Press')

3. Widget to Sidebar

import streamlit as stadd_selectbox = st.sidebar.selectbox(
"What animal you like?",
("Cat", "Snake", "Dog")
)

4. Etc

Written by

Knights come with hope

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