[Numpy-discussion] simple Numarray question

Nancy Keuss nancyk at MIT.EDU
Mon Jan 26 08:39:09 CST 2004


What do I have to include in my Python file for Python to recognize Numarray
functions? For instance, in a file called hello.py I try:

a = arange(10)
print a[1:5]

and I get the error:

Traceback (most recent call last):
  File "C:\Python23\hello.py", line 3, in ?
    a = arange(10)
NameError: name 'arange' is not defined

Thank you,

More information about the Numpy-discussion mailing list