difference between matplotlib inline and matplotlib notebook code example Example: how to enable matplotlib in notebook %matplotlib inline