File size: 1,128 Bytes
03f1121
 
df7c0fa
 
 
 
 
 
2f54514
 
 
 
 
 
 
 
 
6d8838e
 
 
 
 
 
 
 
69af471
 
6e1a342
 
69af471
707ea95
ba0d359
 
 
98a3ff5
 
 
 
 
65064a3
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import streamlit as st

st.title ("this is the app title")
st.header("this is the markdown")
st.markdown("this is the header")
st.subheader("this is the subheader")
st.caption("this is the caption")
st.code("x=2021")
st.latex(r''' a+a r^1+a r^2+a r^3 ''')


st.checkbox('yes')
st.button('Click')
st.radio('Pick your gender',['Male','Female'])
st.selectbox('Pick your gender',['Male','Female'])
st.multiselect('choose a planet',['Jupiter', 'Mars', 'neptune'])
st.select_slider('Pick a mark', ['Bad', 'Good', 'Excellent'])
st.slider('Pick a number', 0,50)

st.number_input('Pick a number', 0,10)
st.text_input('Email address')
st.date_input('Travelling date')
st.time_input('School time')
st.text_area('Description')
st.file_uploader('Upload a photo')
st.color_picker('Choose your favorite color')


import time
with st.spinner('Wait for it...'):
    for n in range(1, 11):
        st.progress(n*10)
        st.balloons()
        time.sleep(1)


import pandas as pd
import numpy as np
df= pd.DataFrame(np.random.randn(10, 2), columns=['x', 'y'])
st.line_chart(df)

x = st.slider('Select a value')
st.write(x, 'squared is', x * x)