Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

End-to-End ML Project- Beginner friendly

40 / 94

Magic functions

First of all, we use a magic function matplotlib inline while working with matplotlib on Jupyter. Magic functions are pre-defined functions to extend the notebook's capabilities.

We use matplotlib inline so that the plots and graphs are shown next to the code in our notebook and are stored within the notebook. Otherwise, the plots and graphs are displayed in a separate window and not within our notebook.

matplotlib inline starts with a % sign as it is a line magic function. So, run the following command before working with matplotlib in Jupyter notebook.

%matplotlib inline
See Answer

No hints are availble for this assesment

Loading comments...