plot matplotlib python inlinme code example
Example 1: how to enable matplotlib in notebook
%matplotlib inline
Example 2: use of matplotlib inline
With this backend, the output of plotting commands is displayed inline within frontends like the Jupyter notebook, directly below the code cell that produced it. The resulting plots will then also be stored in the notebook document.