I just installed the most recent version of Anaconda (24.11.3). I'm trying to do a simple line chart using matplotlib, but am just getting the text output instead of the actual chart.
I tried this exact same code in both Jupyter Notebook and JupyterLab (both opened through Anaconda Navigator) and am getting the same text output instead of the chart itself in both.
These are the matplotlib versions that are installed in conda.
Anyone have any idea why this is happening and how to fix it?


%matplotlib inlinelike in this very similar question stackoverflow.com/questions/79366461/…?%matplotlib inlineis the default now. It is not needed if you aren't switching anything with%matplotlibotherwise. Not sure though why it would need to be removed other than something about your installation seems flawed as it is. You shouldn't needplt.show()that it seems you checked off as solving it if you truly have a fresh working installation. Had you restarted everything before this test? And I mean everything. The entire browser and machine. Also, done a hard refresh on your brower page where the notebook is? (On a MAc in Chrome, Shift + Comand +rdoes it.)launch binder'. When the session comes up, open a new notebook and run%pip install numpy matplotlibto install those two packages. Restart the kernel and run the code ...