Step 1: Install Matplotlib and Setup Environment
Ensure you have Python 3.9+ installed. Use a virtual environment for best practices.
Using pip (recommended):
python -m pip install -U pip
python -m pip install -U matplotlib numpy jupyterlab
Using conda:
conda install matplotlib numpy jupyterlab
Start JupyterLab:
Create a new notebook. Test import:
import matplotlib.pyplot as plt
import numpy as np
plt.plot([1,2,3],[1,4,2])
plt.show()