Python matplotlib plotting GUI error

Problem description:
When trying to perform any plot using matplotlib, an error is now generated

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show()

example script

import matplotlib.pyplot as plt

# Create some example data
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]

# Plot the data
plt.plot(x, y,'r--o')

# Show the plot
plt.show()

Expected behavior:
This was working perfectly fine on Tuesday 04/02/2023. It would show the plot as expected.

Actual behavior:
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show()

Steps to reproduce:
Copy and paste the provided code above. A graph should be generated in the output tab within replit.

Bug appears at this link:
https://replit.com/@JonathanCompto1/Plot-basics

Browser/OS/Device:
chrome Version 111.0.5563.147/windows 10/PC

1 Like

Seems to be fixed now somehow.

Thank you,