Skip to content

Commit

Permalink
Replace beta functions by non-deprecated ones
Browse files Browse the repository at this point in the history
  • Loading branch information
okld committed Oct 28, 2021
1 parent 9b23390 commit cc585b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion streamlit_gallery/ace/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main():
with readme("streamlit-ace", st_ace, __file__):
st.sidebar.title("⚙️ Parameters")

with st.beta_container():
with st.container():
content = st_ace(
placeholder=st.sidebar.text_input("Editor placeholder", value="Write your code here"),
language=st.sidebar.selectbox("Language mode", options=LANGUAGES, index=121),
Expand Down
2 changes: 1 addition & 1 deletion streamlit_gallery/pandas_profiling/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main():
st.write(f"🔗 [Titanic dataset]({dataset})")
st.write(df)

with st.beta_expander("REPORT", expanded=True):
with st.expander("REPORT", expanded=True):
st_profile_report(pr)


Expand Down
2 changes: 1 addition & 1 deletion streamlit_gallery/player/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
* YouTube
""")

c1, c2 = st.beta_columns(2)
c1, c2 = st.columns(2)

with c1:
url = st.text_input("First URL", "https://youtu.be/CmSKVW1v0xM")
Expand Down
6 changes: 3 additions & 3 deletions streamlit_gallery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ def readme(project, usage=None, source=None):
content = requests.get(f"https://raw.githubusercontent.com/okld/{project}/main/README.md").text
st.markdown(_filter_share.sub("", content))

demo = st.beta_container()
demo = st.container()

if usage or source:
st.write("---")

if usage:
with st.beta_expander("USAGE"):
with st.expander("USAGE"):
st.help(usage)

if source:
with st.beta_expander("SOURCE"):
with st.expander("SOURCE"):
st.code(Path(source).read_text())

with demo:
Expand Down

0 comments on commit cc585b3

Please sign in to comment.