Try it in Python

Cell 1

Import NumPy, matplotlib, and scikit-learn: data loader, linear model, train/test split, and R².

Cell 2

Load the diabetes dataset and inspect shapes and a sample of rows and targets.

Cell 3

Split into training and test sets (25% test, fixed seed).

Cell 4

Fit `LinearRegression` and print the intercept and first few coefficients.

Cell 5

Predict on the test set, print R², and plot actual vs predicted.