UndefVarError: linspace not defined

Linspace was deprecated. You should be able to use

range(0,stop=2*pi,length=10)
14 Likes