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 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.
Sounds like you are using the Python interpreter at the command line, which isn't going to be useful for you as a beginner. Install jupyter notebook and use it instead of the command line interpreter to follow along with your course.
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.