Whitespace on SIDES of project rather than the top

Summary

I have searched and found the solution to decrease the whitespace atop the page. But I haven’t seen anything about why I’m getting so much whitespace on the sides… it’s squishing my dataframes dramatically. See image in red. Also, any way I can better align these controls in blue? Thanks!

Share a clear and concise description of the issue. Aim for 2-3 sentences.

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

I think I solved it. It’s wide-mode I’m looking for. I set it in the config:

st.set_page_config(page_title=“J187 Optimizer”, page_icon=“J187DFS.JPG”, layout=“wide”)

Yes indeed, st.set_page_config(layout=“wide”) would allow setting the page layout to wide.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.