SO I have recently started trying to use ipython, I am finding I cannot get it to produce an output graph. I am running the following code in ipython:
from sklearn import linear_model
regr = linear_model.LinearRegression()
regr.fit(x, y)
pl.plot(x, y, 'o')
pl.plot(x_test, regr.predict(x_test))
and I am recieving the output:
[<matplotlib.lines.Line2D at 0x21d453b0>]
With no image attatched.
I installed ipython using the pythonxy package. Any thoughts of suggestions on methods to get plots outputting correctly in ipython
See attached image:
--pylab=inline
. Can you just try running %matplotlib in a cell and then re-execute that code? – Kyle Kelley Nov 19 '13 at 22:41ipython-1.1.0-py2.7.egg-info
I tried to use Using%matplotlib
and i recievedmatplotlib backend: Qt4Agg
– AEA Nov 19 '13 at 22:52