I have the modules correctly imported through my command prompt and the code runs perfectly on my local host
Looks like you haven’t installed matplotlib in your streamlit cloud environment.
matplotlib