Skip to content

python streamlit

akepka edited this page Sep 16, 2026 · 3 revisions

tags:

  • programming
  • python

Python streamlit

pip install streamlit
streamlit hello
mkdir plotting_app
cd plotting_app
touch plot_demo.py
import time
import numpy as np
import streamlit as st
progress_bar = st.sidebar.progress(0)
status_text = st.sidebar.empty()
last_rows = np.random.randn(1, 1)
chart = st.line_chart(last_rows)
for i in range(1, 101):
  new_rows = last_rows[-1, :] + np.random.randn(5, 1).cumsum(axis=0)
  status_text.text("%i%% Complete" % i)
  chart.add_rows(new_rows)
  progress_bar.progress(i)
  last_rows = new_rows
  time.sleep(0.05)
progress_bar.empty()
st.button("Re-run")
streamlit run plot_demo.py
obraz

📖 Nawigacja


Wszystkich notatek: 1354

Kategorie A-Z

  • A (53)
  • B (92)
  • C (45)
  • D (63)
  • E (17)
  • F (7)
  • G (158)
  • H (12)
  • I (6)
  • J (40)
  • K (50)
  • L (78)
  • M (45)
  • N (37)
  • O (121)
  • P (407)
  • R (21)
  • S (34)
  • T (40)
  • U (3)
  • V (7)
  • W (14)
  • Y (1)
  • Z (3)

Clone this wiki locally