FigureCanvasAgg is non-interactive

Hello,

I am practicing creating plots on Replit, but I keep getting this same message: /home/runner/workspace/plots.py:18: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()

I tested it using Google Colab to see if the code works, and it plots fine there. I wonder if I am missing something to add.

Thanks,

Gina