Download pdf/png from matplotlib in Streamlit

Thank you, it works! :smiley:

Other question, do you have any tips on how to connect to a local path/folder from streamlit sharing/ heroku?

save_path=st.sidebar.text_input(“save path location”)
if not len(save_path)==0:
if not os.path.exists(save_path):
st.sidebar.warning(“no path”)
else:
st.sidebar.success(“path”)
#save_path=st.file_uploader(save_path),

I then want to os.listdir(save_path) and get the files from the path that the user inputs.
This works fine in localhost, but deployed on the web it won’t work.