switched theme to streamlit; added icon on download buttons

This commit is contained in:
2022-05-22 22:20:31 +02:00
parent 6d5b4420df
commit cc376b18c3

View File

@ -39,15 +39,15 @@ with col1:
with col2: with col2:
with open("output.h5", "rb") as f: with open("output.h5", "rb") as f:
st.download_button("Download hdf5", f, file_name="output.h5") st.download_button("📥 hdf5", f, file_name="output.h5")
with col3: with col3:
xlsx = to_excel_binary(df) xlsx = to_excel_binary(df)
st.download_button("Download xlsx", xlsx, file_name="output.xlsx") st.download_button("📥 xlsx", xlsx, file_name="output.xlsx")
with col4: with col4:
csv = df.to_csv() csv = df.to_csv()
st.download_button("Download csv", csv, file_name="output.csv") st.download_button("📥 csv", csv, file_name="output.csv")
# st.stop() # st.stop()
@ -71,6 +71,8 @@ response = AgGrid(
sortable=True, sortable=True,
resizable=True, resizable=True,
theme="streamlit",
fit_columns_on_grid_load=True, fit_columns_on_grid_load=True,
reload_data=changed, reload_data=changed,