A Closer Look At Pwxlyzocx Qwqygh Plotly_chart Kwargs
Zszacefuv Vszuai
The deprecation warning around width="content" in st.plotly_chart feels like a stubborn echo from past practices - irritating when you rely on clean, forward-looking code. While using width=500 or height=360 now silently ignores the old keyword, the warning persists, a quiet reminder that legacy habits still linger.
Streamlit and Plotly have shifted toward explicit configuration over swaggy keyword arguments, but this warning isn’t a bug - it’s a signal. It tells developers: trust width over width="content", even if your code still echoes old syntax.
Current Behavior
The warning surfaces when kwargs are present even with a width parameter, conflicting with the new best practice. Debug logs confirm: the deprecation notice is triggered every time - no escape, no grace.
Expected Behavior
A modern, self-documenting call should use config instead of width=content for consistent, future-proof rendering.
Expected Behavior (Refined)
No more playing whack-a-mole with width and width="content". Use width=500 or height=360