Check out example codes for "use of matplotlib inline". It will help you in understanding the concepts better.

Code Example 1

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.

Learn ReactJs, React Native from akashmittal.com