Slope Fields with Python

This Python script will create a slope field for $y' = f(t,y)$. The input cell is set to create a slope field for $$y'=\frac{1}{2}e^{t/3}-\frac{1}{2}y$$

for $-1\le t\le5$ and $-2\le y \le 3$. Also, $y'$ is stored in the variable dy. You can change the settings and functions for other examples.