import matplotlib.pyplot as plt matplotlib inline code example Example: how to enable matplotlib in notebook %matplotlib inline