The Real Story Of Swbjqkesz Tauhbo Plotly_chart Kwargs

by Jule 55 views
The Real Story Of Swbjqkesz Tauhbo Plotly_chart Kwargs

When using st.plotly_chart with width='content', developers often get a deprecation warning about kwargs - even when only documented parameters like width are used. This quirk conflicts with Streamlit’s intent to simplify configurations. The warning appears even though no extra kwargs are passed, creating confusion. A 2024 code example shows the issue: st.plotly_chart(fig, width='content') triggers a notice about deprecated variable keyword arguments. This regression surfaces despite clearer docs, causing unnecessary friction. The warning is meant to guide a shift to the config argument for layout control - but it’s noisy when used improperly. Users should avoid mixing width='content' with extra keyword args. Is this setup safe? Yes - but clarity matters. Avoid st.plotly_chart() with `width=