From Fernando.Perez at colorado.edu Mon Dec 13 16:29:39 2004 From: Fernando.Perez at colorado.edu (Fernando Perez) Date: Mon, 13 Dec 2004 14:29:39 -0700 Subject: [IPython-dev] ANN: IPython 0.6.5 is out. Message-ID: <41BE09C3.10000@colorado.edu> Hi all, I'm glad to announce the release of IPython 0.6.6. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (Py2.2 and 2.3), plus source downloads (.tar.gz and .zip). Debian, Fink and BSD packages for this version should be coming soon, as the respective maintainers (many thanks to Jack Moffit, Andrea Riciputi and Dryice Liu) have the time to follow their packaging procedures. Many thanks to Enthought for their continued hosting support for IPython, and to all the users who contributed ideas, fixes and reports. Release notes ------------- This release was made to fix a few crashes recently found by users, and also to keep compatibility with matplotlib, whose internal namespace structure was recently changed. * Adapt to matplotlib's new name convention, where the matlab-compatible module is called pylab instead of matlab. The change should be transparent to all users, so ipython 0.6.6 will work both with existing matplotlib versions (which use the matlab name) and the new versions (which will use pylab instead). * Don't crash if pylab users have a non-threaded pygtk and they attempt to use the GTK backends. Instead, print a decent error message and suggest a few alternatives. * Improved printing of docstrings for classes and instances. Now, class, constructor and instance-specific docstrings are properly distinguished and all printed. This should provide better functionality for matplotlib.pylab users, since matplotlib relies heavily on class/instance docstrings for end-user information. * New timing functionality added to %run. '%run -t prog' will time the execution of prog.py. Not as fancy as python's timeit.py, but quick and easy to use. You can optionally ask for multiple runs. * Improved (and faster) verbose exeptions, with proper reporting of dotted variable names (this had been broken since ipython's beginnings). * The IPython.genutils.timing() interface changed, now the repetition number is not a parameter anymore, fixed to 1 (the most common case). timings() remains unchanged for multiple repetitions. * Added ipalias() similar to ipmagic(), and simplified their interface. They now take a single string argument, identical to what you'd type at the ipython command line. These provide access to aliases and magics through a python function call, for use in nested python code (the special alias/magic syntax only works on single lines of input). * Fix an obscure crash with recursively embedded ipythons at the command line. * Other minor fixes and cleanups, both to code and documentation. The NEWS file can be found at http://ipython.scipy.org/NEWS, and the full ChangeLog at http://ipython.scipy.org/ChangeLog. Enjoy, and as usual please report any problems. Regards, Fernando. From prabhu_r at users.sf.net Wed Dec 15 05:29:29 2004 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Wed, 15 Dec 2004 15:59:29 +0530 Subject: [IPython-dev] Bug in pysh? Message-ID: <16832.4617.21866.722297@monster.linux.in> Hi, I just ran into this little problem with pysh-0.6.5 |35> ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 [...] This works fine. Unfortunately, this does not: $$a = ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 cut: the delimiter must be a single character Try `cut --help' for more information. To get this to work I need to escape the quotes like so: $$a = ls -l | tr -s [:blank:] | cut -d\' \' -f 5-5 I was surprised at first but realized it was the quoting. So if this is fixable, that would be cool. If not perhaps it could be documented somewhere? Thanks. cheers, prabhu From Fernando.Perez at colorado.edu Wed Dec 15 11:15:53 2004 From: Fernando.Perez at colorado.edu (Fernando Perez) Date: Wed, 15 Dec 2004 09:15:53 -0700 Subject: [IPython-dev] Bug in pysh? In-Reply-To: <16832.4617.21866.722297@monster.linux.in> References: <16832.4617.21866.722297@monster.linux.in> Message-ID: <41C06339.9010005@colorado.edu> Hey Prabhu, Prabhu Ramachandran wrote: > I just ran into this little problem with pysh-0.6.5 > > |35> ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 > [...] > > This works fine. Unfortunately, this does not: > > $$a = ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 > cut: the delimiter must be a single character > Try `cut --help' for more information. > > To get this to work I need to escape the quotes like so: > > $$a = ls -l | tr -s [:blank:] | cut -d\' \' -f 5-5 > > I was surprised at first but realized it was the quoting. So if this > is fixable, that would be cool. If not perhaps it could be documented > somewhere? indeed, it's a bug. It should be fixable, I'll have a look. Thanks for the report. Note that pysh only gets relatively lightweight use from me (for no particular reason I don't use it fulltime, just habit I guess). Which means there are probably lots of small things which don't work quite right. I'm thinking of adding a pyshdebug magic toggle which would activate printing of the auto-modified pysh lines, to ease with debugging. Best, f ps. Thanks for helping John Lee with the emacs issues! I wrote yesterday to you, but it seems the Colorado.EDU SMTP server has been blacklisted by spamhaus, so my messages to sourceforge.net from the office now bounce. I am now writing from home. From ipython at gmail.com Fri Dec 17 18:20:28 2004 From: ipython at gmail.com (Fernando Perez) Date: Fri, 17 Dec 2004 16:20:28 -0700 Subject: [IPython-dev] Bug in pysh? In-Reply-To: <16832.4617.21866.722297@monster.linux.in> References: <16832.4617.21866.722297@monster.linux.in> Message-ID: <856e8a36041217152013895c95@mail.gmail.com> Hey, On Wed, 15 Dec 2004 15:59:29 +0530, Prabhu Ramachandran wrote: > Hi, > > I just ran into this little problem with pysh-0.6.5 > > |35> ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 > [...] > > This works fine. Unfortunately, this does not: > > $$a = ls -l | tr -s [:blank:] | cut -d' ' -f 5-5 > cut: the delimiter must be a single character > Try `cut --help' for more information. Fixed in CVS, thanks for the report. Cheers, f