%matplotlib inline syntax error

Hello, Is there an alternate for the %matplotlib inline while plotting graphs?



This is what I get when i use this code:



>>> %matplotlib.inline

SyntaxError: invalid syntax



P.S. I am using Python IDLE

Hi Kanika,



%matplotlib.inline is a command for Jupyter Notebook. For IDLE simply write your plotting code, without the inline command, and it should be able to produce the plot.



Thanks,

Ashish

Thanks Ashish! It helped.

Yeah I did it via IPNB, as for the plot witch one did you end up choosing a basic line?