I find myself ALWAYS setting use_container_width = True. Any way I could make it default across all widgets?

As the title says. Would it be possible (potentially in a hacky way) to make it default in some way?

1 Like

I usually generate partial functions and overwrite the function imported from streamlit module, something like:

st.dataframe = partial(st.dataframe, use_container_width=True)

But instead of repeating that for every app, I just put it in this package: st-default-width · PyPI. In case you find that useful, here is a quick demo:

1 Like

Thanks

We actually plan to make it the default for most elements soon :slight_smile: