Python 3 Matplotlib Notebook code example Example: how to enable matplotlib in notebook %matplotlib inline