- 스트림릿 홈페이지 : https://streamlit.io/
- 스트림릿 깃허브 페이지 : https://github.com/streamlit/streamlit
-
파이썬 가상환경 설정
-
스트림릿 패키지 설치
pip install streamlit
-
streamlit 예제코드 (test.py)
import streamlit as st st.write("안녕하세요")
-
streamlit 코드 실행하기
streamlit run test.py
- 마크다운 소개영상 : https://youtu.be/GARAX8VuNXE?feature=shared
- 스트림릿 위젯소개 페이지 : https://docs.streamlit.io/develop/api-reference/widgets
-
버튼 위젯
-
입력 위젯
-
선택형 위젯
-
파일 위젯
import streamlit as st uploaded_file = st.file_uploader("파일을 업로드하세요") if uploaded_file: # ① st.write(uploaded_file.name) # ② file_content = uploaded_file.read().decode("utf-8") # ③ st.write(file_content) # ④
