I just checked and it looks like Pycaret has Streamlit compatibility now! There is a parameter in plot_model that needs to be set: display_format='streamlit'
Streamlit has a different structure than Jupyter notebooks, for example. Streamlit needs to be given an image or a figure object so it can be interpreted and converted into a web object. plt.show() wouldn’t work in Streamlit either; you’d need to write the figure object directly like st.write(fig)