The Real Story Of RSS-Feed-Reader: 现代RSS阅读器

by Jule 44 views
The Real Story Of RSS-Feed-Reader: 现代RSS阅读器

st.plotly_chart: The kwargs deprecation warning is back - even when width="content" is used Streamlit’s st.plotly_chart now triggers a clear deprecation alert when variable keyword arguments are passed, despite being the recommended width parameter.

What’s different now? Previously, setting width="content" smoothly rendered charts without issue. But recent fixes have reintroduced the warning, telling users: “Variable keyword arguments for st.plotly_chart are deprecated and will be removed.” This trips up even careful users relying on familiar syntax.

Here’s the catch: while width="content" works in some contexts, the warning surfaces when the library evolves toward stricter config-driven behavior. It’s a regression affecting developers expecting consistent behavior.

To stay safe:

  • Avoid width=... with arbitrary keyword args.
  • Use config instead to control layout and styling explicitly.
  • Watch for the deprecation notice - don’t ignore it.

The bottom line: Streamlit’s charting tool is updating behind the scenes. Protect your apps by adapting now.

The Bottom Line: Hidden warnings now flag deprecated kwargs in st.plotly_chart - width="content" no longer guarantees silence.