matplotlib.use('agg')
Hello Nimesh,
matplotlib can give out graphics in various formats. It can be the python/jupyter shell or even saved as a file. By selling the backend as "agg" we want the library to give out the output as a png file. Can read more about it here: https://matplotlib.org/faq/usage_faq.html#what-is-a-backend