Problems With Workplace - Python

I’m having troubles while using the workplace. Is it posible to use the matplotlib library in the workplace?

I’m running this code but i can see no graphs.

from matplotlib import pyplot as plt
x_values = [0, 1, 2, 3, 4]
y_values = [0, 1, 4, 9, 16]
plt.plot(x_values, y_values)

Is it necessary some special configuration?

Thanks in advance


I’m not sure it’s possible to use something like Matplotlib in a Codecademy workspace (expect for inside a lesson that’s specifically built to handle it), I’d recommend using something like VScode or Jupyter Notebook locally instead.

Happy coding! :slightly_smiling_face:

1 Like

No, one cannot import Python libraries into the workspace.
Use Colab or Jupyter instead.

1 Like

Thanks for the info. I will use those platforms that you recommend.