I get the error message from Enthought iPython whether or not I'm using Spyder, unless I prefix the commands with 'from numpy import array'
DN
On 30/12/2012, at 2:36 AM,
kar...@charter.net wrote:
> Can't create arrays consistently in Spyder (v2.1.11 within Python(x,y)). A simple program like:
> lst = [[1,2,3],[4,5,6],[11,12,13]]
> x = array(lst,int) #or x = array(lst)
> print x
> gives the error: NameError: name 'array' is not defined
> At other times, it correctly prints out the array. I'm not sure how my settings are off that I would get so frustratingly inconsistent output. Or is it rather a problem with arrays in Python or Spyder itself. Thanks for any help.
>
> Charles McCall
>
> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/spyderlib/-/aACCbYYNLbYJ.
> To post to this group, send email to
spyd...@googlegroups.com.
> To unsubscribe from this group, send email to
spyderlib+...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.