# what does %matplotlib inline mean? [closed]

so i have this lab in coursera course, well i tried first at Linux terminal at the first command %matplotlib inline, it doesn't work : ( bash: fg :%matplotlib no such job ), even if I apply it like matplotlib inline or matplotlib also doesn't work, I know those lines like IN[19] show when you write ipython in the terminal so even when I write ipython then %matplotlib inline it doesnt work, also for the command import ipython it doesn't work, since I am already in iypthon how could I import ipython

%matplotlib inline is a magic command for IPython that allows you to add plots to the browser interface. It's not for the the terminal.
You do need to import IPython into your script (like any other module) if you want to use their functions during your script. This is not the same as installing a dependency from pip where it is downloaded and saved to your python local environment.