import matplotlib
import numpy as np
import matplotlib.pyplot as plt
''' see the line bellow '''
%matplotlib inline # <- here
I understand what '%' is for in math and in strings, but what does it do here? Is it also a string? Can't tell. Can some one elaborate.
Edit: Folks in the comments helped me to narrow it down to ipython/Jupyter.
And if you are using ipython, try %magic
to get more info on magic ipython/Jupyter functions.