Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():

# Nav Search Form
with st.form(key='searchform'):
nav1,nav2,nav3 = st.beta_columns([3,2,1])
nav1,nav2,nav3 = st.columns([3,2,1])

with nav1:
search_term = st.text_input("Search Job")
Expand All @@ -54,7 +54,7 @@ def main():
st.success("You searched for {} in {}".format(search_term,location))

# Results
col1, col2 = st.beta_columns([2,1])
col1, col2 = st.columns([2,1])

with col1:
if submit_search:
Expand Down
2 changes: 1 addition & 1 deletion Movie_Directory_App_with_Layouts/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Movie Directory App with Streamlit + MovieLens Dataset
+ using streamlit layout feature
- st.beta_columns()
- st.columns()
- st.beta_expander()

+ Version 0.68 and more
Expand Down
6 changes: 3 additions & 3 deletions Movie_Directory_App_with_Layouts/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def main():
"""Basics on st.beta columns/layout"""
"""Basics on st.columns/layout"""

menu = ["Home","Search","About"]
choice = st.sidebar.selectbox("Menu",menu)
Expand Down Expand Up @@ -50,7 +50,7 @@ def main():
# Layout
# st.write(img_link)
# st.image(img_link)
c1,c2,c3 = st.beta_columns([1,2,1])
c1,c2,c3 = st.columns([1,2,1])

with c1:
with st.beta_expander("Title"):
Expand Down Expand Up @@ -79,7 +79,7 @@ def main():
df_for_year = df[df['year'].dt.year == movie_year]
st.dataframe(df_for_year)

col1,col2,col3 = st.beta_columns([1,2,1])
col1,col2,col3 = st.columns([1,2,1])

with col1:
with st.beta_expander("Title"):
Expand Down
6 changes: 3 additions & 3 deletions Movie_Directory_App_with_Layouts/column_layout_tuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def main():
# st.text("Sidebar")
# st.write(dir(st.sidebar))

# Using st.beta_columns
col1,col2 = st.beta_columns(2)
# Using st.columns
col1,col2 = st.columns(2)
# st.text("Beta Columns")
# st.write(dir(col1))

Expand Down Expand Up @@ -45,7 +45,7 @@ def main():
elif choice == "Search":
st.subheader("Search")
# Different Layout
c1,c2,c3 = st.beta_columns([3,1,1])
c1,c2,c3 = st.columns([3,1,1])

with c1:
st.info("From Col 1")
Expand Down
6 changes: 3 additions & 3 deletions TextClassifierRiverMLApp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main():
if choice == "Home":
st.subheader("Home")
with st.form(key='mlform'):
col1,col2 = st.beta_columns([2,1])
col1,col2 = st.columns([2,1])
with col1:
message = st.text_area("Message")
submit_message = st.form_submit_button(label='Predict')
Expand All @@ -85,7 +85,7 @@ def main():
st.success("Data Submitted")


res_col1 ,res_col2 = st.beta_columns(2)
res_col1 ,res_col2 = st.columns(2)
with res_col1:
st.info("Original Text")
st.write(message)
Expand Down Expand Up @@ -124,7 +124,7 @@ def main():



c1,c2 = st.beta_columns(2)
c1,c2 = st.columns(2)
with c1:
with st.beta_expander("Software Probability"):
st.altair_chart(c_software_proba,use_container_width=True)
Expand Down
2 changes: 1 addition & 1 deletion Working_with_Streamlit_Forms/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main():
# Salary Calculator
# Combine forms + columns
with st.form(key='salaryform'):
col1,col2,col3 = st.beta_columns([3,2,1])
col1,col2,col3 = st.columns([3,2,1])

with col1:
amount = st.number_input("Hourly Rate in $")
Expand Down
4 changes: 2 additions & 2 deletions how_to_add_session__state-settings-App/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main():
# st.write("Counts[with session state]",st.session_state.counter_one)


col1,col2 = st.beta_columns(2)
col1,col2 = st.columns(2)
with col1:
increment = st.button("Increment By One")
# Function
Expand All @@ -85,7 +85,7 @@ def main():
st.session_state['fontsize'] = 12


f1,f2 = st.beta_columns(2)
f1,f2 = st.columns(2)

with f1:
# Create a button for fxn/cb fxn
Expand Down
2 changes: 1 addition & 1 deletion sqlplayground_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main():
st.subheader("HomePage")

# Columns/Layout
col1,col2 = st.beta_columns(2)
col1,col2 = st.columns(2)

with col1:
with st.form(key='query_form'):
Expand Down