You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyplotGlobalUseWarning: You are calling st.pyplot() without any arguments. After December 1st, 2020, we will remove the ability to do this as it requires the use of Matplotlib's global figure object, which is not thread-safe.
To future-proof this code, you should pass in a figure as shown below:
fig, ax = plt.subplots()
ax.scatter([1, 2, 3], [1, 2, 3])
... other plotting actions ...
st.pyplot(fig)
You can disable this warning by disabling the config option:deprecation.showPyplotGlobalUse
st.set_option('deprecation.showPyplotGlobalUse', False)
or in your .streamlit/config.toml
[deprecation]
showPyplotGlobalUse = False
The text was updated successfully, but these errors were encountered:
PyplotGlobalUseWarning: You are calling st.pyplot() without any arguments. After December 1st, 2020, we will remove the ability to do this as it requires the use of Matplotlib's global figure object, which is not thread-safe.
To future-proof this code, you should pass in a figure as shown below:
st.set_option('deprecation.showPyplotGlobalUse', False)
or in your .streamlit/config.toml
[deprecation]
showPyplotGlobalUse = False
The text was updated successfully, but these errors were encountered: