Error: failed to send plot to http://127.0.0.1:63342
code:
#Machine learning using numpy
import numpy as np
from matplotlib import pyplot as plt
#Generate input data x and objective function y, and set random number seeds to facilitate comparison of multiple methods
np.random.seed(100)
x=np.linspace(-1,1,100).reshape(100,1)
y=3*np.power(x,2)+2+0.2*np.random.rand(x.size).reshape(100,1)
#Drawing
plt.scatter(x,y)
plt.show()
Go directly to the setting of pycharm---->tools---->python scientific, and then uncheck ☑️Show plot in tool windosw.