Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-18 Thread Chris Barker
On Mon, Oct 7, 2013 at 10:15 AM, Siegfried Gonzi wrote: > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A FLOAT = Array[23, 23] am I missing something, or is this what you get when you type a na

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Aronne Merrelli
There isn't anything quite the same. (I think what you are really asking for is a way to print the essential info about one variable name, at least that is how I would use the IDL "help" procedure). In IPython, I use the whos magic to do something similar, although it just prints this info for all

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Nathaniel Smith
The other answers tell you how to access Python's excellent quick reference documentation, but from your examples I'm not sure if that's what you're looking for? If you just want to know what value some variable has at the interactive prompt, just type its name and hit enter. (This is a general fea

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Benjamin Root
On Mon, Oct 7, 2013 at 1:15 PM, Siegfried Gonzi wrote: > Hi all > > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A FLOAT = Array[23, 23] > > or > > IDL> a = create_struct('idl',23) > > IDL> help

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Aron Ahmadia
If you're using IPython (strongly recommended) a? a?? If you're just using Python help(a) A On Mon, Oct 7, 2013 at 1:15 PM, Siegfried Gonzi wrote: > Hi all > > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A

[Numpy-discussion] Equivalent to IDL's help function

2013-10-07 Thread Siegfried Gonzi
Hi all What is the equivalent to IDL its help function, e.g. == IDL> a = make_array(23,23,) IDL> help,a will result in: A FLOAT = Array[23, 23] or IDL> a = create_struct('idl',23) IDL> help,a gives: A STRUCT= -> Array[1] == I have been looking for i