<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 7 Oct 2013, at 21:16, <a href="mailto:numpy-discussion-request@scipy.org">numpy-discussion-request@scipy.org</a> wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><br>Message: 5<br>Date: Mon, 7 Oct 2013 13:38:53 -0500<br>From: Aronne Merrelli <<a href="mailto:aronne.merrelli@gmail.com">aronne.merrelli@gmail.com</a>><br>Subject: Re: [Numpy-discussion] Equivalent to IDL's help function<br><br><br>There isn't anything quite the same. (I think what you are really asking<br>for is a way to print the essential info about one variable name, at least<br>that is how I would use the IDL "help" procedure). In IPython, I use the<br>whos magic to do something similar, although it just prints this info for<br>all variables or all variables of one class, rather than just one variable.<br>I do not think there is a way to do it for just one variable.<br><br>Here are some examples - you can see this works quite well but it will<br>become unwieldy if your interactive namespace becomes large:<br><br>In [1]: x = 1; y = 2; z = 3.3; d = {'one':1, 'two':2, 'three':3}<br><br>In [2]: whos<br>Variable   Type     Data/Info<br>-----------------------------<br>d          dict     n=3<br>x          int      1<br>y          int      2<br>z          float    3.3<br><br>In [3]: whos dict<br>Variable   Type    Data/Info<br>----------------------------<br>d          dict    n=3<br><br>In [4]: xa = np.arange(111); ya = np.ones((22,4))<br><br>In [5]: whos ndarray<br>Variable   Type       Data/Info<br>-------------------------------<br>xa         ndarray    111: 111 elems, type `int64`, 888 bytes<br>ya         ndarray    22x4: 88 elems, type `float64`, 704 bytes<br><br><br></div></blockquote><div><br></div>Hi</div><div><br></div><div>[I hope I am not screwing up the digest reply function here].</div><div><br></div><div>I am after a  "whos" which would work in a script. It is not very often that I develop code at the command line.</div><div><br></div><div>I am definitely not one of the best  programmers out there but I used "help" a lot in my IDL  scripts and code. Our research group is migrating away from IDL towards Python.</div><div><br></div><div>I think Python's help is not the same than IDL's help. I know copying things from other languages is not always a good idea but one cannot argue that IDL's help comes in rather handy while developing and testing code.</div><div><br></div><div> </div><div><br></div><div> </div><div><br><blockquote type="cite"><div><br><br>On Mon, Oct 7, 2013 at 12:15 PM, Siegfried Gonzi<br><<a href="mailto:sgonzi@staffmail.ed.ac.uk">sgonzi@staffmail.ed.ac.uk</a>>wrote:<br><br><blockquote type="cite">Hi all<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What is the equivalent to IDL its help function, e.g.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">==<br></blockquote><blockquote type="cite">IDL> a = make_array(23,23,)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">IDL> help,a<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">will result in:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">A               FLOAT     = Array[23, 23]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">or<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">IDL> a = create_struct('idl',23)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">IDL> help,a<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">gives:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">A               STRUCT    = -> <Anonymous> Array[1]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">==<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have been looking for it ever since using numpy. It would make my life<br></blockquote><blockquote type="cite">so much easier.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks, Siegfried<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">The University of Edinburgh is a charitable body, registered in<br></blockquote><blockquote type="cite">Scotland, with registration number SC005336.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">NumPy-Discussion mailing list<br></blockquote><blockquote type="cite"><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br></blockquote><blockquote type="cite"><a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br></blockquote><blockquote type="cite"><br></blockquote>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131007/cccb9996/attachment-0001.html">http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131007/cccb9996/attachment-0001.html</a> <br><br>------------------------------<br><br>Message: 6<br>Date: Mon, 07 Oct 2013 23:22:17 +0300<br>From: Dmitrey <<a href="mailto:tmp50@ukr.net">tmp50@ukr.net</a>><br>Subject: Re: [Numpy-discussion] [ANN] MATLAB ODE solvers - now<br><span class="Apple-tab-span" style="white-space:pre"> </span>available in<span class="Apple-tab-span" style="white-space:pre">        </span>Python (Dmitrey)<br>To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@scipy.org">numpy-discussion@scipy.org</a>><br>Cc: <a href="mailto:numpy-discussion@scipy.org">numpy-discussion@scipy.org</a><br>Message-ID: <<a href="mailto:1381177204.440489225.k74gn9x8@frv43.ukr.net">1381177204.440489225.k74gn9x8@frv43.ukr.net</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>FYI scipy ODE solvers vode, dopri5, dop853 also have been connected to OpenOpt, possibly with automatic differentiation by FuncDesigner? (dopri5 and dop853 don't use derivatives although). <br><br>---------------------- <br>Regards, D. <a href="http://openopt.org/Dmitrey">http://openopt.org/Dmitrey</a> <br><br>--- ???????? ????????? --- <br>?? ????: "David Goldsmith" < <a href="mailto:d.l.goldsmith@gmail.com">d.l.goldsmith@gmail.com</a> > <br>????: 7 ??????? 2013, 07:16:33 <br><br>On Sun, Oct 6, 2013 at 10:00 AM, < <a href="mailto:numpy-discussion-request@scipy.org">numpy-discussion-request@scipy.org</a> > wrote: <br>Message: 2 <br>Date: Sat, 05 Oct 2013 21:36:48 +0300 <br>From: Dmitrey < <a href="mailto:tmp50@ukr.net">tmp50@ukr.net</a> > <br>Subject: Re: [Numpy-discussion] [ANN] MATLAB ODE solvers - now <br>? ? ? ? available in ? ?Python <br>To: Discussion of Numerical Python < <a href="mailto:numpy-discussion@scipy.org">numpy-discussion@scipy.org</a> > <br>Cc: <a href="mailto:numpy-discussion@scipy.org">numpy-discussion@scipy.org</a> <br>Message-ID: < <a href="mailto:1380997576.559804301.aoynahlj@frv43.ukr.net">1380997576.559804301.aoynahlj@frv43.ukr.net</a> > <br>Content-Type: text/plain; charset="utf-8" <br>? Seems like using the MATLAB solvers with MCR requires my wrappers containing in several files to be compiled with MATLAB Compiler before. I have no license for MATLAB thus I may have problems if I'll make it done and will spread it with OpenOpt suite code, also, binary files are incompatible with BSD license. <br><br>Darn, knew it was too good to be true. ? On the other hand, IIRC a little bit obsolete MATLAB versions (I don't think difference is essential) have more liberal licenses. <br>As for MATLAB solvers examples, I have already mentioned them in the mail list, you could see them in <a href="http://openopt.org/ODE">http://openopt.org/ODE</a> (just replace solver name from scipy_lsoda to ode23s or any other), <a href="http://openopt.org/NLP">http://openopt.org/NLP</a> , <a href="http://openopt.org/SNLE">http://openopt.org/SNLE</a> <br>Oooops, so sorry. :-o? <br>DG? <br>---------------------- <br>Regards, D. <a href="http://openopt.org/Dmitrey">http://openopt.org/Dmitrey</a> <br>-------------- next part -------------- <br>An HTML attachment was scrubbed... <br>URL: <a href="http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131005/dd6638db/attachment-0001.html">http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131005/dd6638db/attachment-0001.html</a> <br><br>------------------------------ <br><br>_______________________________________________ <br>NumPy-Discussion mailing list <br><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a> <br><a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a> <br><br><br>End of NumPy-Discussion Digest, Vol 85, Issue 17 <br>************************************************ <br><br><br><br>-- <br><blockquote type="cite">From "A Letter From The Future" in "Peak Everything" by Richard Heinberg: <br></blockquote><br>"By the time I was an older teenager, a certain...attitude was developing among the young people...a feeling of utter contempt for anyone over a certain age--maybe 30 or 40.? The adults had consumed so many resources, and now there were none left for their own children...when those adults were younger, they [were] just doing what everybody else was doing...they figured it was normal to cut down ancient forests for...phone books, pump every last gallon of oil to power their SUV's...[but] for...my generation all that was just a dim memory...We [grew up] living in darkness, with shortages of food and water, with riots in the streets, with people begging on street corners...for us, the adults were the enemy." <br><br>Want to really understand what's really going on?? Read "Peak Everything." <br><br><br>_______________________________________________<br>NumPy-Discussion mailing list<br> <a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a> <br> <a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a> <br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131007/20a4c824/attachment.html">http://mail.scipy.org/pipermail/numpy-discussion/attachments/20131007/20a4c824/attachment.html</a> <br><br>------------------------------<br><br>_______________________________________________<br>NumPy-Discussion mailing list<br><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/numpy-discussion<br><br><br>End of NumPy-Discussion Digest, Vol 85, Issue 19<br>************************************************<br><br></div></blockquote></div><br></body></html>