In order to plot my trained ML data, I need to use one matplotlib.pyplot method as follow:
plt.plot(points_x, points_y, color='red', linewidth=3)

where (points_x, points_y) define a line.

It works properly in QB, but in only the API Lean Charts appears, and not this one.

Is there any way to plot it in

I'll really appreciate your help.
Thanks in advance.