Plotting Lanchain REPL Code in Streamlit

Hi there,
I am building a webapp utilizing Replit AI Agent, and streamlit has been of great help throughout. However, I have been stuck on one specific situation for the past three days that I just can’t get past.


So, the data is inputted, and based on user prompts, Langchain REPL produces a code. For analysis, the output is printed and returned successfully, as is for showing the table. However, the plotting does not work, with usually two errors:
‘Streamlit server is still not starting properly’ or “UserWarning”

I have checked several other fixes and none of them work for me.

Would really appreciate the help.