Complete the code to install Matplotlib using pip.
pip [1] matplotlibUse pip install matplotlib to install the Matplotlib library.
Complete the code to import Matplotlib's pyplot module.
import matplotlib.[1] as plt
Matplotlib's plotting functions are in the pyplot module, imported as plt.
Fix the error in the code to display a simple plot.
plt.plot([1, 2, 3], [4, 5, 6]) plt.[1]()
Use plt.show() to display the plot window.
Fill both blanks to create a virtual environment and activate it.
python -m [1] env source env/[2]/activate
Create a virtual environment with python -m venv env and activate it with source env/bin/activate.
Fill all three blanks to install Matplotlib inside a virtual environment and verify the version.
source env/bin/activate pip [1] matplotlib import matplotlib print(matplotlib.[2]) print(matplotlib.__[3]__)
Activate the environment, install Matplotlib with pip install matplotlib, then check the version with matplotlib.__version__.
