I am using the Jupyter notebook with Python 2.7. Importing matplotlib like this:
%matplotlib inline import matplotlib.pyplot as plt
But
The requirement of adding %matplotlin inline is no longer needed in the latest jupyter notebooks. It's a by default addition now.
%matplotlin inline
You can change settings in ipython_kernel_config.py for different behaviour
ipython_kernel_config.py