HAHS.
도구와 라이브러리로 돌아가기Back to Tools & Libraries

Streamlit

고수준 코드High-level code

프런트엔드 코드 없이 데이터 스크립트를 대화형 웹 앱이나 대시보드로 바꿔 주는 오픈소스 Python 프레임워크입니다.An open-source Python framework that turns a data script into an interactive web app or dashboard without front-end code.

오픈소스Open source webpython Python

현재 버전Current version: 1.66.1, 정보 확인일 2026-10-24facts checked 2026-10-24

개요Overview

Streamlit은 Python 스크립트 한 파일을 웹 앱으로 바꿔 주는 오픈소스 프레임워크입니다. st.slider, st.selectbox 같은 위젯 함수를 호출하면 화면에 입력 컨트롤이 생기고, st.line_chart나 st.plotly_chart 같은 함수를 호출하면 차트가 나타납니다. HTML, CSS, JavaScript를 쓰지 않아도 되므로 데이터 분석가와 연구자가 노트북에서 만든 분석을 동료에게 공유하는 데 많이 쓰입니다.

Streamlit is an open-source framework that turns a single Python script into a web app. Calling widget functions such as st.slider and st.selectbox creates input controls on the page, and calling functions such as st.line_chart or st.plotly_chart draws charts. It needs no HTML, CSS or JavaScript, so analysts and researchers use it to share what they built in a notebook with colleagues.

동작 방식은 단순합니다. 사용자가 위젯을 조작하면 스크립트가 위에서 아래로 다시 실행되고 화면이 갱신됩니다. 차트 자체는 Streamlit 내장 함수 외에 matplotlib, seaborn, Altair, Plotly, Vega-Lite, pydeck 객체를 그대로 받아 그릴 수 있습니다. 그래서 Streamlit은 차트 라이브러리라기보다 차트를 앱으로 묶는 틀에 가깝습니다.

The model is simple. When a user changes a widget, the script runs again from top to bottom and the page updates. Besides its own chart functions, it can draw matplotlib, seaborn, Altair, Plotly, Vega-Lite and pydeck objects directly. Streamlit is therefore less a charting library than a frame that wraps charts into an app.

2026년 10월 현재 최신 버전은 1.66.1(2026년 10월 21일)이고, Python 3.11 이상이 필요합니다. 라이선스는 Apache-2.0입니다. 노트북 차트를 공유 가능한 앱으로 옮기는 가장 짧은 경로 가운데 하나라서, 이 사이트의 대시보드와 상호작용 항목을 직접 구현해 볼 때 좋은 출발점이 됩니다.

As of October 2026 the latest version is 1.66.1 (October 21, 2026), and it requires Python 3.11 or later. It is licensed under Apache-2.0. It is one of the shortest paths from a notebook chart to a shareable app, which makes it a good starting point for building the dashboards and interactions discussed on this site.

2026년 현재What's new in 2026

  • Streamlit 1.66.0이 2026년 10월 14일에, 1.66.1이 10월 21일에 나왔습니다.
  • Streamlit 1.66.0 was released on October 14, 2026, and 1.66.1 followed on October 21.
  • 1.66에서 상태를 가진 위젯에 on_change="ignore" 옵션이 추가되었습니다. 값이 바뀌어도 스크립트 재실행을 일으키지 않게 할 수 있습니다.
  • Version 1.66 adds an on_change="ignore" option for stateful widgets, so a value change need not trigger a script rerun.
  • 같은 릴리스에서 테마 여백(padding) 설정, 접근성 landmark 개선, 테스트 도구 AppTest가 다루는 요소 확대가 이루어졌습니다.
  • The same release added theme padding configuration, accessibility landmark improvements, and more elements supported by the AppTest testing tool.
  • 현재 버전은 Python 3.11 이상을 요구합니다. 오래된 Python 환경에서는 업그레이드가 필요할 수 있습니다.
  • The current version requires Python 3.11 or later, so older Python environments may need an upgrade.
  • 1.66 릴리스 노트에는 생성형 AI 기능이 없습니다. AI 어시스턴트가 Streamlit 앱 코드를 써 주는 경우는 많으니, 아래 시작하기의 프롬프트처럼 요청하고 결과를 직접 실행해 확인하십시오.
  • The 1.66 release notes list no generative-AI feature. AI assistants often write Streamlit app code, so request it with a prompt like the one in Getting Started below and run the result to verify it.

강점Strengths

  • 순수 Python만으로 입력 컨트롤과 차트가 있는 앱을 몇 줄에 만듭니다.
  • Apps with input controls and charts take a few lines of pure Python.
  • matplotlib, seaborn, Altair, Plotly 등 익숙한 차트 객체를 그대로 보여 줄 수 있습니다.
  • Familiar chart objects from matplotlib, seaborn, Altair, Plotly and others display as they are.
  • 사이드바, 탭, 열, 데이터 테이블 같은 레이아웃 요소가 기본 제공됩니다.
  • Layout elements such as sidebars, tabs, columns and data tables are built in.
  • st.cache_data로 비싼 계산과 데이터 로딩을 캐시해 반응 속도를 유지할 수 있습니다.
  • st.cache_data caches expensive computations and data loading to keep the app responsive.
  • 코드를 바꾸면 화면이 바로 갱신되어 시도와 수정이 빠릅니다.
  • The page refreshes when you change the code, which makes trying and revising fast.
  • 학습 곡선이 완만해서 비개발자도 하루 안에 첫 앱을 만들 수 있습니다.
  • The gentle learning curve lets a non-developer build a first app within a day.

한계Limitations

  • 위젯을 조작할 때마다 스크립트 전체가 다시 실행되므로, 캐시와 session_state를 이해하지 못하면 느리거나 상태가 사라지는 앱이 됩니다.
  • The whole script reruns on every widget interaction, so without understanding caching and session_state the app becomes slow or loses state.
  • 화면 배치와 디자인의 자유도가 낮습니다. 정교한 맞춤 레이아웃이나 브랜딩에는 한계가 있습니다.
  • Freedom over layout and design is limited, and precise custom layouts or branding are hard.
  • 차트 간 연결(한 차트의 선택이 다른 차트를 필터링)은 직접 코드를 짜야 하는 경우가 많습니다.
  • Linking charts, where a selection in one filters another, often needs hand-written code.
  • 앱을 다른 사람에게 보여 주려면 서버나 호스팅 서비스에 올려야 합니다. 인증과 접근 제한, 데이터 보안은 직접 챙겨야 합니다.
  • To show an app to others you must host it on a server or hosting service, and authentication, access control and data security are your responsibility.
  • 내장 차트는 단순합니다. 복잡한 차트는 Altair, Plotly 같은 라이브러리를 함께 써야 합니다.
  • The built-in charts are basic, so complex charts need a library such as Altair or Plotly.
  • 사용자가 많거나 동시 접속이 몰리는 대규모 서비스에는 적합하지 않을 수 있습니다.
  • It may not suit large services with many users or heavy concurrent traffic.

이런 용도에 최적Best For

분석 결과를 필터와 슬라이더가 달린 앱으로 팀이나 수강생에게 보여 주고 싶을 때 적합합니다. 사내 지표 대시보드, 모델 결과 탐색기, 수업용 데모, 연구 결과 설명 도구가 대표적입니다. 데이터는 Python으로 다루지만 보는 사람은 코드를 모르는 경우에 특히 맞습니다.

It fits when you want to show analysis results to a team or class as an app with filters and sliders. Typical uses are internal metric dashboards, model result explorers, classroom demos and tools for explaining research findings. It is especially suited to cases where you handle the data in Python but your audience does not read code.

차트 하나를 보고서나 논문에 넣는 용도라면 seaborn이나 matplotlib으로 충분합니다. 브랜드 디자인이 중요한 공개 서비스나 매우 큰 트래픽에는 일반 웹 프레임워크가 더 맞습니다.

If you only need a single chart for a report or paper, seaborn or matplotlib is enough. For public services where brand design matters, or very heavy traffic, a general web framework is the better fit.

시작하기Getting Started

  1. Python 3.11 이상 환경에서 pip install streamlit으로 설치합니다.
  2. In a Python 3.11 or later environment, install with pip install streamlit.
  3. 아래 코드를 app.py로 저장합니다.
  4. Save the code below as app.py.
  5. 터미널에서 streamlit run app.py를 실행하면 브라우저에 앱이 열립니다.
  6. Run streamlit run app.py in a terminal and the app opens in your browser.
  7. 사이드바에서 지역을 바꿔 보며 차트와 표가 함께 바뀌는지, 축의 시작값과 합계가 맞는지 확인합니다.
  8. Change the region in the sidebar and check that the charts and table change together, and that the axis baseline and totals are correct.
import numpy as np
import pandas as pd
import streamlit as st

st.title("Monthly sales explorer")


@st.cache_data
def load_data() -> pd.DataFrame:
    rng = np.random.default_rng(0)
    months = pd.date_range("2025-01-01", periods=24, freq="MS")
    return pd.DataFrame({
        "month": np.tile(months, 3),
        "region": np.repeat(["Seoul", "Busan", "Daegu"], len(months)),
        "sales": rng.integers(80, 200, size=3 * len(months)),
    })


df = load_data()
regions = st.sidebar.multiselect(
    "Region", sorted(df["region"].unique()), default=["Seoul", "Busan"]
)
view = df[df["region"].isin(regions)]

st.line_chart(view, x="month", y="sales", color="region")
st.bar_chart(view.groupby("region")["sales"].sum())
st.dataframe(view, hide_index=True)

AI 어시스턴트에게 앱 초안을 부탁하는 프롬프트 예시입니다.

Here is an example prompt for asking an AI assistant for a first draft of an app.

첨부한 sales.csv(열: date, region, product, revenue)로 Streamlit 앱을 만들어 줘. 사이드바에 지역 다중 선택과 기간 슬라이더를 두고, 월별 매출 선 차트와 제품별 합계 막대 차트를 보여 줘. 집계 방식(합계 또는 평균)을 코드 주석에 적고, 막대 차트의 축은 0에서 시작하게 해 줘. 데이터 로딩에는 st.cache_data를 쓰고, Python 3.11과 streamlit 1.66에서 실행되는 코드만 써 줘.

Build a Streamlit app from the attached sales.csv (columns: date, region, product, revenue). Put a multi-select for region and a date range slider in the sidebar, and show a monthly revenue line chart and a bar chart of totals by product. State the aggregation (sum or mean) in a code comment, and make the bar chart axis start at 0. Use st.cache_data for data loading, and write code that runs on Python 3.11 and streamlit 1.66.

지원 차트 유형Supported Chart Types

내장 함수로 선 차트(st.line_chart), 영역 차트(st.area_chart), 막대 차트(st.bar_chart), 산점도(st.scatter_chart), 지도 위 점(st.map)을 한 줄로 그릴 수 있습니다. 숫자 하나를 크게 보여 주는 st.metric과 표를 보여 주는 st.dataframe도 대시보드에 자주 쓰입니다.

Built-in functions draw line charts (st.line_chart), area charts (st.area_chart), bar charts (st.bar_chart), scatterplots (st.scatter_chart) and points on a map (st.map) in one line. st.metric, which shows a single large number, and st.dataframe, which shows a table, are also common in dashboards.

그 밖의 차트는 st.pyplot(matplotlib, seaborn), st.altair_chart, st.vega_lite_chart, st.plotly_chart, st.pydeck_chart로 해당 라이브러리의 객체를 그대로 보여 줍니다. 따라서 지원 범위는 함께 쓰는 라이브러리가 지원하는 차트 유형 전체로 넓어집니다.

For everything else, st.pyplot (matplotlib, seaborn), st.altair_chart, st.vega_lite_chart, st.plotly_chart and st.pydeck_chart display the objects of those libraries as they are. The supported range therefore extends to every chart type the companion library supports.