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:
- sklearn.utils.validation.check_random_state(seed)
- only size-1 arrays can be converted to Python scalars
- Pycharm introduces numpy error: ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy.
- Python TypeError: only size-1 arrays can be converted to Python scalars
- ggplot2 texts : Add text annotations to a graph in R software
- How to Solve DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueErr…
- [Solved] Importerror: DLL load failed while importing mtrand: the specified program could not be found.
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- [Solved] pydotplus generate iris.pdf error: InvocationException: GraphViz’s executables not found