|
  • pip3 install streamlit
    • or, if need to reinstall use: pip3 install “streamlit>=1.23.0”
  • import streamlit as st
  • st.sidebar
  • st.container(border=True, height =40)
  • st.dataframe(df, hide_index = None, width = 300, height = 500, column_order[“colname”, “colname”])
  • To fix load error on newer versions of streamlit try this…
    • streamlit run app.py –server.enableXsrfProtection false
    • or move to a Streamlit version 1.29.0 or less
    • pip3 uninstall streamlit
    • pip3 install streamlit==1.29.0

Create a Navigation Menu or Bar

Cache Option

  • keeps the variable in memory when streamlit page updates rather than allowing it to reset
  • use as follows:
    • @cache
    • def function():
      • return something #this something variable will end up in the cache memory

Adding CSS Styling