[Numpy-discussion] simple Numarray question

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


Hi,

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,
Nancy





More information about the NumPy-Discussion mailing list