Streamlit
데이터 사이언티스트도 분석 모델의 UI(사용자인터페이스)를 쉽게 구성할 수 있도록 python에서 제공하는 app library입니다
Streamlit • A faster way to build and share data apps
Streamlit is an open-source Python framework for machine learning and data science teams. Create interactive data apps in minutes.
streamlit.io
1. 가상환경 생성
conda create -n '가상환경명' python=='파이썬버전'
- 가상환경 활성화
conda activate '가상환경명'
2. streamlit 설치
pip install streamlit
3. streamlit 실행
- python 파일 작성(stremlit.py)
import streamlit as st
st.title('Hello Streamlit')
- VSCode 터미널에서 streamlit 실행
1. [VSCode] - [TERMINAL] - [Command Prompt] 추가
2. 가상환경 활성화
conda activate '가상환경명'
아래처럼 괄호 안에 가상환경명이 추가되었다면 가상환경이 활성화 된 것
streamlit.py 파일이 저장된 파일 경로로 이동
cd '파일경로'
3. streamlit 실행
streamlit run streamlit.py
4. streamlit 실행 확인
'Python > Streamlit' 카테고리의 다른 글
[Streamlit] 2. Streamlit - echart 활용하기 (0) | 2024.12.04 |
---|