Recall & Review
beginner
What does 'inline display' mean in Jupyter notebooks?
Inline display means that plots and images appear directly below the code cell that created them, without opening a separate window.
Click to reveal answer
beginner
Which magic command enables inline plotting in Jupyter notebooks?
The magic command
%matplotlib inline enables inline plotting, so plots show up inside the notebook cells.Click to reveal answer
beginner
How do you import matplotlib and enable inline plots in a Jupyter notebook?You write:<br><pre>import matplotlib.pyplot as plt
%matplotlib inline</pre><br>This sets up matplotlib and tells Jupyter to show plots inline.Click to reveal answer
beginner
Why is inline display useful when working in Jupyter notebooks?
Inline display keeps your plots right next to your code and results, making it easier to understand and share your work.
Click to reveal answer
beginner
What happens if you don't use %matplotlib inline in a Jupyter notebook?
Without
%matplotlib inline, plots might open in a separate window or not show up at all inside the notebook.Click to reveal answer
Which command makes matplotlib plots appear inside Jupyter notebook cells?
✗ Incorrect
The command %matplotlib inline tells Jupyter to display plots inside the notebook cells.
What is the effect of %matplotlib inline in a notebook?
✗ Incorrect
%matplotlib inline makes plots appear directly below the code cell that created them.
Which library is commonly used with %matplotlib inline for plotting?
✗ Incorrect
matplotlib.pyplot is the plotting module used with %matplotlib inline.
If you forget to use %matplotlib inline, what might happen?
✗ Incorrect
Without %matplotlib inline, plots might not show inside the notebook cells.
Where do inline plots appear in a Jupyter notebook?
✗ Incorrect
Inline plots appear directly below the code cell that generated them.
Explain how to enable inline plotting in a Jupyter notebook and why it is helpful.
Think about how you want your plots to show up when you run code.
You got /4 concepts.
Describe what happens if you do not use %matplotlib inline when plotting in Jupyter notebooks.
Consider the default behavior of matplotlib without inline mode.
You got /3 concepts.