[Solved] Pycharm Error: Error: failed to send plot to http://127.0.0.1:63342

pycharm error: Error: failed to send plot to http://127.0.0.1:63342
pycharm error: Error: failed to send plot to http://127.0.0.1:63342

#Machine learning using numpy implementation
import numpy as  np
from matplotlib import pyplot as plt
#Generate the input data x as well as the objective function y. Set the random number seed to allow for multiple methods of comparison
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)
#Drawings
plt.scatter(x,y)
plt.show()

 

Solution:

Go directly to pycharm setting – > tools——> Python scientific, then uncheck ☑ Show plot in tool windosw.

Similar Posts: