Skip to content

Commit e28dfc8

Browse files
Prerelease/1.50.0 (#1345)
* Update generate.py * New apps * Bump to nightly
1 parent 70148ea commit e28dfc8

File tree

33 files changed

+161
-37
lines changed

33 files changed

+161
-37
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
streamlit>=1.49.0
1+
streamlit-nightly
22
webvtt-py
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import pandas as pd
2+
import streamlit as st
3+
4+
data_df = pd.DataFrame(
5+
{
6+
"category": [
7+
["exploration", "visualization"],
8+
["llm", "visualization"],
9+
["exploration"],
10+
],
11+
}
12+
)
13+
14+
st.data_editor(
15+
data_df,
16+
column_config={
17+
"category": st.column_config.MultiselectColumn(
18+
"App Categories",
19+
help="The categories of the app",
20+
options=[
21+
"exploration",
22+
"visualization",
23+
"llm",
24+
],
25+
color=["#ffa421", "#803df5", "#00c0f2"],
26+
format_func=lambda x: x.capitalize(),
27+
),
28+
},
29+
)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import pandas as pd
2+
import streamlit as st
3+
4+
data_df = pd.DataFrame(
5+
{
6+
"category": [
7+
["exploration", "visualization"],
8+
["llm", "visualization"],
9+
["exploration"],
10+
],
11+
}
12+
)
13+
14+
st.dataframe(
15+
data_df,
16+
column_config={
17+
"category": st.column_config.MultiselectColumn(
18+
"App Categories",
19+
options=["exploration", "visualization", "llm"],
20+
color="primary",
21+
format_func=lambda x: x.capitalize(),
22+
),
23+
},
24+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pandas as pd
2+
import streamlit as st
3+
4+
confusion_matrix = pd.DataFrame(
5+
{
6+
"Predicted Cat": [85, 3, 2, 1],
7+
"Predicted Dog": [2, 78, 4, 0],
8+
"Predicted Bird": [1, 5, 72, 3],
9+
"Predicted Fish": [0, 2, 1, 89],
10+
},
11+
index=["Actual Cat", "Actual Dog", "Actual Bird", "Actual Fish"],
12+
)
13+
st.table(confusion_matrix)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import streamlit as st
2+
3+
product_data = {
4+
"Product": [
5+
":material/devices: Widget Pro",
6+
":material/smart_toy: Smart Device",
7+
":material/inventory: Premium Kit",
8+
],
9+
"Category": [":blue[Electronics]", ":green[IoT]", ":violet[Bundle]"],
10+
"Stock": ["🟢 Full", "🟡 Low", "🔴 Empty"],
11+
"Units sold": [1247, 892, 654],
12+
"Revenue": [125000, 89000, 98000],
13+
}
14+
st.table(product_data, border="horizontal")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.49.0
1+
streamlit-nightly

python/api-examples-source/hello/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ pandas==1.5.3
22
numpy==1.23.5
33
altair==4.2.0
44
pydeck==0.8.0
5-
streamlit>=1.49.0
5+
streamlit-nightly
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import streamlit as st
2+
3+
tab1, tab2, tab3 = st.tabs(
4+
[":cat: Cat", ":dog: Dog", ":rainbow[Owl]"], default=":rainbow[Owl]"
5+
)
6+
7+
with tab1:
8+
st.header("A cat")
9+
st.image("https://static.streamlit.io/examples/cat.jpg", width=200)
10+
with tab2:
11+
st.header("A dog")
12+
st.image("https://static.streamlit.io/examples/dog.jpg", width=200)
13+
with tab3:
14+
st.header("An owl")
15+
st.image("https://static.streamlit.io/examples/owl.jpg", width=200)

python/api-examples-source/mpa-hello/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ numpy==1.23.5
33
altair==4.2.0
44
pydeck==0.8.0
55
opencv-python-headless==4.8.1.78
6-
streamlit>=1.49.0
6+
streamlit-nightly
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.49.0
1+
streamlit-nightly

0 commit comments

Comments
 (0)