Can you please explain why is ‘%matplotlib inline’ used here? what if we do not use it?
%matplotlib incline
hey @mehta.rashita18 ,
you might have seen a new window coming out every time you plot something using matplotlib in your code file.
matplotlib has some backends for different works , a example is inline
%matplotlib inline sets matplotlib backend as inline which will make your plt.plot commands to work in the same way as they work jupyter notebooks , means plotting your graphs in code without creating new windows. But if you use it jupyter notebook , it just means that as your code is saved your plot will also be along with it.
I hope this might have resolved your doubt.
Thank You and Happy Learning
Hi,
Thanks I got the difference,
but does that mean that using this in the jupyter notebook will not make any difference?
okay,
Thanks sir,
hey @mehta.rashita18 ,
i guess your doubt is now resolved.
So kindly mark this doubt as resolved in your course doubt section and also provide your valuable feedback as it helps us to improve this platform and provide you with improved learning experience.
Thank You and Happy Coding .