How to add a line break inside longer cells in the display of an Excel file?

Hello everyone,

I am new to Streamlit, but after searching for a while on the discussion feeds or online I haven’t been able to find a solution to my problem.

I want to display an excel file on my web app, but in some of the cells the text is rather long and make the dataframe exceed the size of the screen, forcing the user to use the scroller bar to see the entire excel (which is only 7 columns).

Is there a way to automatically adjust the width of the cells to do it, like it is on Excel?

Thank you in advance for your answers.

Hi @Alexandre_Touzet,

Thanks for sharing your question with the community!

Check out our guidelines on how to post an effective question here and please update your post to include a runnable code snippet so we can try to reproduce the error/make helpful suggestions :slightly_smiling_face: