Hi guys!
Not sure if this is documented anywhere (apologies if so! :)) - I was wondering whether there was a way to prevent code that’s been commented out via triple quotes to be displayed in a Streamlit app?
For instance:
'''
multiple_files = st.file_uploader("Multiple File Uploader", accept_multiple_files=True)
for file in multiple_files:
file_container = st.beta_expander(f"File name: {file.name} ({file.size})")
data = io.BytesIO(file.getbuffer())
file_container.write(pd.read_csv(data, error_bad_lines=False))
file.seek(0)
dfs = [pd.read_csv(file) for file in multiple_files]
st.write("Print 1st dataframe")
st.write(dfs[0])
'''
Thanks,
Charly