A sad day for the scientific Python community. John Hunter, creator of matplotlib: 1968-2012.

2012-08-29 Thread Fernando Perez
Dear friends and colleagues, I am terribly saddened to report that yesterday, August 28 2012 at 10am, John D. Hunter died from complications arising from cancer treatment at the University of Chicago hospital, after a brief but intense battle with this terrible illness. John is survived by his

[ANN] IPython 0.13 is officially out!

2012-06-30 Thread Fernando Perez
Hi all, on behalf of the IPython development team, and just in time for the imminent Debian freeze and SciPy 2012, I'm thrilled to announce, after an intense 6 months of work, the official release of IPython 0.13. This version contains several major new features, as well as a large amount of bug

Re: Python education survey

2011-12-20 Thread Fernando Perez
On Mon, 19 Dec 2011 19:51:00 -0800, Raymond Hettinger wrote: Do you use IDLE when teaching Python? If not, what is the tool of choice? I'm obviously biased (I started IPython years ago), but I've done a lot of teaching and I still do like the combination of IPython plus an editor. Sometimes

[ANN] IPython 0.12 is out!

2011-12-19 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm thrilled to announce, after an intense 4 1/2 months of work, the official release of IPython 0.12. This is a very important release for IPython, for several reasons. First and foremost, we have a major new feature, our interactive

Re: IPython 0.12 is out!

2011-12-19 Thread Fernando Perez
On Mon, 19 Dec 2011 20:00:03 -0800, alex23 wrote: You read the installation instructions and did a 'python setup.py install' as it states, yes? Installed that way for Python 2.7.2 under Win64 with no issues whatsoever. Glad to hear that. Obviously since I announced it here I'll try to

[ANN] IPython 0.11 is officially out

2011-07-31 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm thrilled to announce, after more than two years of development work, the official release of IPython 0.11. This release brings a long list of improvements and new features (along with hopefully few new bugs). We have completely refactored

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: No problem for us (IPython) if you mark it as won't fix. I've just applied the environment workaround you guys suggested: http://github.com/ipython/ipython/commit/147b245d2ead0e15d2c17b7bb760a03126660fb7 Thanks a lot for that tip

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: Yes, sorry that I failed to mention the example I gave applies only to 2.x, not to 3.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170

[issue1170] shlex have problems with parsing unicode

2010-07-27 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: On Tue, Jul 27, 2010 at 11:52, Alexander Belopolsky rep...@bugs.python.org wrote: Why do you expect shlex to work with unicode in 2.x? =A0The documentation clearly says that the argument should be a string. Supporting unicode

[issue1170] shlex have problems with parsing unicode

2010-07-25 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: Here is an illustration of the problem with a simple test case (the value of the posix flag doesn't make any difference): Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type help, copyright, credits or license

[issue7897] Support parametrized tests in unittest

2010-04-09 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: Hey Yarick, On Thu, Apr 8, 2010 at 18:53, Yaroslav Halchenko rep...@bugs.python.org w= rote: In PyMVPA we have our little decorator as an alternative to Fernando's ge= nerators, =A0and which is closer, I think, to what Michael was wishing

[issue7897] Support parametrized tests in unittest

2010-04-09 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: Yarick: Yes, I do actually see the value of the summary view. When I have a parametric test that fails, I tend to just run nose with -x so it stops at the first error and with the --pdb options to study it, so I simply ignore all

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: I should probably have clarified better our reasons for using this type of code. The first is the one Michael pointed out, where such parametric tests all execute; it's very common in scientific computing to have algorithms that only fail

[issue7897] Support parametrized tests in unittest

2010-02-09 Thread Fernando Perez
New submission from Fernando Perez fdo.pe...@gmail.com: IPython has unittest-based parametric testing (something nose has but which produces effectively undebuggable tests, while this approach gives perfectly debuggable ones). The code lives here for 2.x and 3.x: http://bazaar.launchpad.net

Re: Strange behavior of __get__ in a descriptor in IPython

2007-11-07 Thread Fernando Perez
Jakub Hegenbart wrote: Hi, I'm studying the descriptor protocol and its usage from the following document: http://users.rcn.com/python/download/Descriptor.htm There is some sample code: http://users.rcn.com/python/download/Descriptor.htm#descriptor-example that behaves in a

Confused about closures and scoping rules

2007-11-06 Thread Fernando Perez
Hi all, consider the following small example: Small test to try to understand a strange subtlety with closures def outer(nmax): aa = [] for n in range(nmax): def a(y): return (y,n) print 'Closure and cell id:',id(a.func_closure),\

Re: Confused about closures and scoping rules

2007-11-06 Thread Fernando Perez
Diez B. Roggisch wrote: It's a FAQ. The reason is that the created closures don't capture the _value_, but the _name_. Plus of course the locals()-dictionary outside the function a to perform the lookup of that name. Which has the value bound to it in the last iteration. Common cure for

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Fernando Perez
Massimo Di Pierro wrote: P.S. Michele Simionato. I have heard your name before? Is it possible we have met in Pisa in 1990-1996? I am also a Quantum Field Theorist and there is not many of us. More than you think, it seems. Some of us were even using python to process Lattice QCD

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Fernando Perez
Massimo Di Pierro wrote: happy to hear that. you may want take a loot at http://mdp.cti.depaul.edu/vqcd It is mostly python stuff and will post the code soon. Ah, memories :) I'm not working on QCD anymore, but I did write a bunch of code a while back to script Mayavi (the old one, not the

Re: Any syntactic cleanup likely for Py3? And what about doc standards?

2007-09-10 Thread Fernando Perez
Ferenczi Viktor wrote: Properties are very useful, since ordinary attribute access can be transparently replaced with properties if the developer needs to add code when it's set or needs to calculate it's value whenever it is read. As an additional benefit this could allow developers to

Bug in execfile?

2007-08-02 Thread Fernando Perez
Hi all, I'm finding the following behavior truly puzzling, but before I post a bug report on the site, I'd rather be corrected if I'm just missing somethin obvious. Consider the following trivial script: # Simple script that imports something from the stdlib from math import sin, pi wav =

Re: Bug in execfile?

2007-08-02 Thread Fernando Perez
Ian Clark wrote: Fernando Perez wrote: Hi all, (snip) I'm really, really puzzled by this. From reading the execfile() docs, I had the hunch to change the call to: execfile(fname,{}) and now the problem disappears, so I can keep on working. But I'm still very bothered

Re: Plotting Images

2007-07-31 Thread Fernando Perez
Pei-Yu CHAO wrote: Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) Read the docstrings, they explain

[ANN] IPython 0.8.0 is out

2007-04-10 Thread Fernando Perez
Hi all, The IPython team is happy to release version 0.8.0, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to Python's default. IPython has many

Re: ipython env

2007-04-05 Thread Fernando Perez
Larry Bates wrote: Greg Donald wrote: Anyone know what's up with environment variables when using ipython? [...] In Cpython you get this with: import os os.environ['EDITOR'] Yup, same in ipython :) Just to clarify, env is just a convenience function in ipython that simply does this: In

Re: Rational numbers

2007-02-28 Thread Fernando Perez
[EMAIL PROTECTED] wrote: On Feb 25, 3:09 pm, Fernando Perez [EMAIL PROTECTED] wrote: Alex, have you had a look at SAGE? http://modular.math.washington.edu/sage/ it uses GMP extensively, so they've had to patch it to work around these issues. You can look at the SAGE release (they package

Re: Rational numbers

2007-02-25 Thread Fernando Perez
[EMAIL PROTECTED] wrote: gmpy itself is or should be pretty trivial to build on any platform (and I'll always happily accept any fixes that make it better on any specific platform, since it's easy to make them conditional so they'll apply to that platform only), but the underlying GMP is

Re: pylab, integral of sinc function

2007-02-22 Thread Fernando Perez
Schüle Daniel wrote: Hello, In [19]: def simple_integral(func,a,b,dx = 0.001): : return sum(map(lambda x:dx*x, func(arange(a,b,dx : In [20]: simple_integral(sin, 0, 2*pi) Out[20]: -7.5484213527594133e-08 ok, can be thought as zero In [21]:

Re: Maybe a little bug of ipython 0.7.3 ?

2007-01-08 Thread Fernando Perez
[EMAIL PROTECTED] wrote: I'm new to ipython, and i found it a very cool product. Glad you like it, though in the future I recommend you post on the ipython list. I very rarely scan c.l.py these days, unfortunately. $ ipython Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Fernando Perez
sturlamolden wrote: Following up on my previous post, there is a simple Python MPI wrapper that can be used to exploit multiple processors for scientific computing. It only works for Numeric, but an adaptaion to NumPy should be easy (there is only one small C file in the source):

Re: switching to numpy and failing, a user story

2006-10-07 Thread Fernando Perez
[EMAIL PROTECTED] wrote: After using numeric for almost ten years, I decided to attempt to switch a large codebase (python and C++) to using numpy. Here's are some comments about how that went. - The code to automatically switch python stuff over just kind of works. But it was a 90%

Re: Interact with system command prompt

2006-09-20 Thread Fernando Perez
billie wrote: Uhm... It seems that IPython got some problems: http://ipython.scipy.org/doc/manual/node12.html In details: Note that this does not make IPython a full-fledged system shell. In particular, it has no job control, so if you type Ctrl-Z (under Unix), you'll suspend pysh itself,

Re: Scientific computing and data visualization.

2006-09-06 Thread Fernando Perez
Matteo wrote: One hurdle to overcome is transferring array data from Numeric/Numpy into VTK. I have a sort of ad-hoc method to do that (mainly for volume data). If anyone knows of any elegant solution, or a module to ease the pain, I'd like to hear about it.

Re: unit testing failure makes no sense

2006-09-05 Thread Fernando Perez
[EMAIL PROTECTED] wrote: I have some unit testing code in one of my modules that appears to run without an error, but the unit test fails anyhow. Have a look at the output below -- the TestResult seems to have no errors and no failures, yet I get a system exit. unittest.main() ALWAYS raises

Re: Matplotlib eps export

2006-07-04 Thread Fernando Perez
Martin Manns wrote: Hi, When I use matplotlib for a scatter plot with both dots and connecting lines, the exported eps file is huge, if the distances between many points are small. I think of this as a bug, since no preview tiff is included in the generated eps and a variety of text

IPython 0.7.2 is out.

2006-06-07 Thread Fernando Perez
Hi all, The IPython team is happy to release version 0.7.2, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to Python's default. IPython has many

IPython 0.7.2 is out.

2006-06-06 Thread Fernando Perez
Hi all, The IPython team is happy to release version 0.7.2, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to Python's default. IPython has many

Re: Start a python interactive shell from python.

2006-01-26 Thread Fernando Perez
Bo Peng wrote: I think I find what I need: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355319 That's a nice, lightweight one. Note that if you want to have all the bells and whistles of ipython (and you have ipython already), then a simple if __name__ == '__namin__': from

IPython 0.7.1 is out.

2006-01-24 Thread Fernando Perez
Hi all, I have released IPython 0.7.1, which is mainly a bugfix release over 0.7.0. As expected in that release, given the large changes made, some problems inevitably appeared. I believe all regressions and known bugs have been fixed, along with some useful new features. This release marks the

Re: OpenGL

2006-01-23 Thread Fernando Perez
Mike C. Fletcher wrote: OpenGL-ctypes is designed with a fairly well abstracted array-handling API. Basically any array type can be registered with handlers that let you tell the system how to do basic operations; get an array's size, shape, data-type, convert to a given data-format, build

[ANN] IPython 0.7.1 is out.

2006-01-23 Thread Fernando Perez
Hi all, I have released IPython 0.7.1, which is mainly a bugfix release over 0.7.0. As expected in that release, given the large changes made, some problems inevitably appeared. I believe all regressions and known bugs have been fixed, along with some useful new features. This release marks the

Re: how do real python programmers work?

2006-01-18 Thread Fernando Perez
bblais wrote: Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for some help to find out how the same thing is done in Python. I am not sure what

Re: Getting better traceback info on exec and execfile - introspection?

2006-01-15 Thread Fernando Perez
R. Bernstein wrote: Fernando Perez [EMAIL PROTECTED] writes: R. Bernstein wrote: ... However the frame information for exec or execfile looks like this: File string, line 1, in ? That comes from how the code object was compiled: ... So any regexp-matching based approach here

Re: New Python.org website ?

2006-01-14 Thread Fernando Perez
Tim Chase wrote: http://beta.python.org In both Mozilla-suite (1.7) and FireFox (1.5), the links on the left (the grey-backgrounded all-caps with the at the right) all intrude into the body text. They're all the same length: Just as an FYI, I see the same problem under Linux, using

Re: Getting better traceback info on exec and execfile - introspection?

2006-01-14 Thread Fernando Perez
R. Bernstein wrote: In doing the extension to the python debugger which I have here: http://sourceforge.net/project/showfiles.php?group_id=61395package_id=175827 I came across one little thing that it would be nice to get done better. I notice on stack traces and tracebacks, an exec or

[ANN] IPython 0.7.0

2006-01-10 Thread Fernando Perez
Hi all, After a long hiatus (0.6.15 was out in June of 2005), I'm glad to announce the release of IPython 0.7.0, with lots of new features. WHAT is IPython? 1. An interactive shell superior to Python's default. IPython has many features for object introspection, system shell

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-09 Thread Fernando Perez
R. Bernstein wrote: Fernando Perez [EMAIL PROTECTED] suggests: You may want to try out ipython (the current release candidate from http://ipython.scipy.org/dist/testing/, which has many improvements on this front). The %pdb magic will trigger automatic activation of pdb at any uncaught

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread Fernando Perez
[EMAIL PROTECTED] wrote: I hope some of the other problems with it get addressed some day: - There is no way (I know of) to start a python script from the command line with the debugger active; I always have to modify the source to insert a pdb.set_trace(). I would like something

Re: PYTHONDOCS

2005-12-31 Thread Fernando Perez
J. D. Leach wrote: OK, I'm stupid. I have been unable to discern (even Googled) a way to set the PYTHONDOCS variable to point to where the HTML files are. What to do? I need to know the process and where theses variables are stored. It's an environment variable. In my case:

Re: Question about the 'code' module

2005-12-29 Thread Fernando Perez
Thomas Heller wrote: I'm using the code module to implement an interactive interpreter console in a GUI application, the interpreter running in a separate thread. To provide clean shutdown of the application, I have to make sure that objects used in the interpreter thread are deleted when

Re: Command-line tool able to take multiple commands at one time?

2005-11-10 Thread Fernando Perez
Peter A.Schott wrote: Per subject - I realize I can copy/paste a line at a time into an interactive session when I'm trying to debug, but was wondering if there is any tool out there that allows me to copy sections of working Python scripts to paste into my interactive console and let those

Re: exceptions, internals (introspection?)

2005-11-10 Thread Fernando Perez
ej wrote: I have often wondered how to get at other internals, such as the name of the current function, file, line number I am in? The arguments to the current function, etc. I browsed through the table of contents of both the Library Reference Language Reference. I see section 18.

Re: need an example of Python numarray to C++ and back again, Boost / SWIG?

2005-11-10 Thread Fernando Perez
PL wrote: I looked at Stefan's post - but he remarks that Unfortunately, Blitz jealously guards its data (restricted pointers), so that it is not so easy to do the conversion in the other direction. If anyone knows an answer to this problem, I'd be glad to hear it I've previously looked

Re: need an example of Python numarray to C++ and back again, Boost / SWIG?

2005-11-09 Thread Fernando Perez
PL wrote: I want to pass a 2D array from Python to C++, manipulate it in C++ (for example, add 1 to each element) and pass it back to Python. With these building blocks I will be able to figure out all the rest of what I need to do for my project. I am very familiar with Python, but less

Re: array subset could be improved? -repost ;)

2005-10-14 Thread Fernando Perez
Jim O'D wrote: Hi all I have an array a=array([2,3,-1]). I want to extract an array with all the elements of a that are less than 0. Numeric is currently changing into the new scipy core. If you are willing to play with beta code, get it here: http://numeric.scipy.org if not, wait a

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-14 Thread Fernando Perez
Kenneth McDonald a écrit : For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my main system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour (OS X is like driving in Portland at rush hour--not as bad, but

Re: working with VERY large 'float' and 'complex' types

2005-09-14 Thread Fernando Perez
Todd Steury wrote: Greetings Python'ers: I'm just an amature who occasionally uses Python for complex mathematical models. The current model I'm working with occasionally generates really large numbers that are either float or complex types. These numbers are so large that I either get an

Re: Detailed traceback

2005-09-13 Thread Fernando Perez
Echo wrote: I have been working on handling unhanded exceptions and making a detailed print out of the traceback after the exception. I found that traceback.extract_tb worked nice and was quite simple. During my searching around I found out that it might be possible to get the variables

Re: job scheduling framework?

2005-09-08 Thread Fernando Perez
Larry Bates wrote: Google turned up these links that might be of interest: http://www.foretec.com/python/workshops/1998-11/demosession/hoegl/ http://www.webwareforpython.org/Webware/TaskKit/Docs/QuickStart.html

Re: Precise timings ?

2005-08-30 Thread Fernando Perez
Madhusudan Singh wrote: Madhusudan Singh wrote: Hi I am using time.clock() to get the current time of the processor in seconds. For my application, I need really high resolution but currently seem to be limited to 0.01 second. Is there a way to specify the resolution (say 1-10

Re: interpreter frame

2005-08-11 Thread Fernando Perez
Peter Hansen wrote: Leo wrote: Good try, but that doesn't seem to work either. Maybe I should have emphasized that what I really want is the line of code, as opposed to the entire frame. Ah, it wasn't clear from your first post that you were specifically interested in a line you entered

Re: Dabo in 30 seconds?

2005-08-03 Thread Fernando Perez
Paul McNett wrote: I've done things like this in the past, in my own Visual Foxpro framework. In that situation, I had enough control over the deployment to also ship a small smtp client, and automatically email the error without requiring any interaction at all. Clients were impressed when

Re: Dabo in 30 seconds?

2005-08-02 Thread Fernando Perez
current IPython configuration. It was left in the file named: '/home/fperez/.ipython/IPython_crash_report.txt' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. You can mail it to Fernando Perez at [EMAIL

Re: Dabo in 30 seconds?

2005-08-02 Thread Fernando Perez
Paul McNett wrote: Fernando Perez wrote: If you are interested, just get ipython and grab the files for this, it's all BSD licensed. You can also browse the SVN repo here if you want to look at the code: http://ipython.scipy.org/svn/ipython/ipython/trunk/IPython/ The relevant files

Re: A Module on Time Date

2005-07-27 Thread Fernando Perez
Robert Maas, see http://tinyurl.com/uh3t wrote: From: Robert Kern [EMAIL PROTECTED] As you can see in the datetime documentation, the module was introduced in Python 2.3. I recommend updating your Python installation. What do you mean your?? I don't have any Python installation of my own.

Re: PEP on path module for standard library

2005-07-21 Thread Fernando Perez
Peter Hansen wrote: Michael Hoffman wrote: For the PEP, do any of you have arguments for or against including path? Code samples that are much easier or more difficult with this class would also be most helpful. I believe the strongest argument for path can be made for how it integrates

Re: goto

2005-07-19 Thread Fernando Perez
Steven Bethard wrote: Fernando Perez wrote: Steven Bethard wrote: Download the goto module: http://www.entrian.com/goto/ And you can use goto to your heart's content. And to the horror of all your friends/coworkers. ;) That is actually a _really_ cool piece of code, in terms

Re: goto

2005-07-18 Thread Fernando Perez
Steven Bethard wrote: Hayri ERDENER wrote: what is the equivalent of C languages' goto statement in python? Download the goto module: http://www.entrian.com/goto/ And you can use goto to your heart's content. And to the horror of all your friends/coworkers. ;) STeVe That is

Re: PyX, matplotlib, 3D LaTeX

2005-07-08 Thread Fernando Perez
Francisco Borges wrote: I like PyX, use it a lot and would suggest it as a beter plotting library than the ones at Scipy (for as long as you don't need on-screen plotting). FWIW, the plotting support in scipy is essentially unmaintained and abandoned, since the advent of matplotlib. It

Re: question about introspection using inspect module

2005-07-07 Thread Fernando Perez
Benjamin Rutt wrote: I'm trying to learn about introspection in Python. my ultimate goal is to be able to build a module text database of all modules that are in the sys.path, by discovering all candidate modules (I've already done that), importing all of them, and then introspecting on

Re: question about introspection using inspect module

2005-07-07 Thread Fernando Perez
Benjamin Rutt wrote: Fernando Perez [EMAIL PROTECTED] writes: I certainly don't want to discourage you from learning about python introspection, it's one of the most fun aspects of the language. But just as an FYI, the pydoc system already does much of what you have in mind, at least

Re: whos -- a function listing objects

2005-06-17 Thread Fernando Perez
[EMAIL PROTECTED] wrote: I have been a long time Matlab user. I Python, I miss Matlab's whos command. plug you might want to look at ipython. whos, and a bit more come for free: planck[~] ipython -pylab Python 2.3.4 (#1, Feb 2 2005, 12:11:53) Type copyright, credits or license for more

Re: whos -- a function listing objects

2005-06-17 Thread Fernando Perez
[EMAIL PROTECTED] wrote: That is nice. I didn't know iPython can do whos. Will try it. iPython seems to infinitely configurable. Hope it will not suck too much of my time into it. It is. It probably will. It did to me :) At least, I hope it will have been time well spent. Best, f ps

Re: [Python-Dev] A bug in pyconfig.h under Linux?

2005-06-14 Thread Fernando Perez
Jeff Epler wrote: [sent to python-list and poster] Did you follow the direction that Python.h be included before any system header? This is mentioned at least in http://docs.python.org/ext/simpleExample.html OK, I'll try to make it work this way. It's not totally trivial, b/c this

Writing func_closure?

2005-06-08 Thread Fernando Perez
Hi all, by reading through the docs, the func_closure attribute of function objects is listed as writable. Yet, nowhere does it say _how_ to write to it. I am trying to do a run-time modification of a function's closure, where I want to modify the value of one of the variables in the closure.

Re: Writing func_closure?

2005-06-08 Thread Fernando Perez
Michael Hoffman wrote: Fernando Perez wrote: I am trying to do a run-time modification of a function's closure, where I want to modify the value of one of the variables in the closure. Out of curiosity, why? Oh, I was just trying to play a little trick inside a tight loop where I

Re: computer algebra packages

2005-06-08 Thread Fernando Perez
Bill Mill wrote: On 6/8/05, Fernando Perez [EMAIL PROTECTED] wrote: Rahul wrote: Hi. The reason is simple enough. I plan to do some academic research related to computer algebra for which i need some package which i can call as a library. Since i am not going to use the package

Re: Writing func_closure?

2005-06-08 Thread Fernando Perez
Greg Ewing wrote: As far as I know, there is currently no supported way of directly creating or modifying cell objects from Python; it can only be done by some obscure trickery. So the docs are telling the truth here, in a way. :-) In a twisted, convoluted way :) But thanks for the

Re: Unhappy with numarray docs

2005-06-01 Thread Fernando Perez
Matt Feinstein wrote: On Wed, 01 Jun 2005 08:11:36 -0700, Scott David Daniels [EMAIL PROTECTED] wrote: Propose some fixes to the documents that will make this easier for the next one in line. You don't even need to get it exactly right; the person after you can fix the mistakes you make.

Re: plotting with Python

2005-06-01 Thread Fernando Perez
Rolf Wester wrote: Hi, I have a Python console application that is intended to be used interactively and I have to add plotting capabilities (multiple XY plots and if possible 2D-surface plots). I'm loocking for a reasonably fast plotting library (not GPL'ed, needs not be for free) that

[ANN] IPython 0.6.14.

2005-05-31 Thread Fernando Perez
Hi all, I've just made the 0.6.14 release of IPython, mostly to fix the inevitable bugs reported after the .13 one (though one big improvement sneaked by). IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python

[ANN] IPython 0.6.14.

2005-05-31 Thread Fernando Perez
Hi all, I've just made the 0.6.14 release of IPython, mostly to fix the inevitable bugs reported after the .13 one (though one big improvement sneaked by). IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python

Re: Python Graphing Utilities.

2005-05-11 Thread Fernando Perez
Torsten Bronger wrote: Hallchen! Fernando Perez [EMAIL PROTECTED] writes: [...] Well, it's true that the latex-type (called mathtext) support in matplotlib is not really up to par with true latex (kerning is off in places, mixed text/math doesn't work well, etc). I've been willing

Re: Listing of declared variables and functions

2005-05-10 Thread Fernando Perez
ohms377 wrote: Dear python users, In interactive mode, I was wondering if there is a way to list all declared variables and functions (and from global workspace). In [1]: def foo(): pass ...: In [2]: x=1 In [3]: a='hello' In [4]: import re In [5]: whos Variable Type

Re: Python Graphing Utilities.

2005-05-10 Thread Fernando Perez
Bill Mill wrote: On 5/10/05, Kenneth Miller [EMAIL PROTECTED] wrote: Hello All, I am new to Python and i was wondering what graphing utlities would be available to me. I have already tried BLT and after weeks of unsuccesful installs i'd like to find something else. Anything someone

[ANN] IPython 0.6.13 is out.

2005-04-14 Thread Fernando Perez
Hi all, I'm glad to announce the release of IPython 0.6.13. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python 2.3 and 2.4, built under Fedora Core 3), plus source downloads (.tar.gz). Fedora users should

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Fernando Perez
Claudio Grondi wrote: Considering what I found in the ipython mailing archives and the fact, that after the fix with displaying colors on bright backgrounds Gary had no time yet to get in touch with me about the code I have sent him, I suppose, that there will be no new releases addressing

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Fernando Perez
Michele Simionato wrote: Me too :-( I have already submitted my issues with the Italian keyboard on WinXP with no great success. It works on Linux, but this is not of a big help since my plan was to use ipython -p pysh on Windows as a replacement of the shell :-( Bummer. I wonder, if the

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-05 Thread Fernando Perez
syd wrote: I don't even know where to begin. This is just bizarre. I just picked up the Gnuplot.py module (a light interface to gnuplot commands) and was messing around with it today. I've got a tiny script, but it only works from the command line about half the time! In the python

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-05 Thread Fernando Perez
syd wrote: Thanks for all the help, guys! Fernando, that's a creative solution, I'll try it as well... while 1: if os.path.isfile(your_plot_filename): break time.sleep(1) More like a desperate brute force one, but it gets the job done :) You mentioned having ipython, so you can

Re: computing a weighted sum

2005-03-16 Thread Fernando Perez
[EMAIL PROTECTED] wrote: Suppose I have a list of n floats x and a list of n floats w and I want to compute x[0]*w[0] + .. + x[n-1]*w[n-1]. Is there some elegant expression (perhaps using lambda) to have it done in one statement ? As in : y = lambda x,w : ... I ask because the way

[ANN] IPython 0.6.12 is out.

2005-03-02 Thread Fernando Perez
Hi all, I'm glad to announce the release of IPython 0.6.12. This is mainly a bugfix release. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python 2.3 and 2.4, built under Fedora Core 3), plus source downloads

[ANN] IPython 0.6.12 is out.

2005-03-02 Thread Fernando Perez
Hi all, I'm glad to announce the release of IPython 0.6.12. This is mainly a bugfix release. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python 2.3 and 2.4, built under Fedora Core 3), plus source downloads

Re: [ANN] IPython 0.6.11 is out.

2005-02-16 Thread Fernando Perez
Ville Vainio wrote: Warning - if you are upgrading and have an old pysh.py dangling around in $HOME/.ipython, be sure to delete it. The old version is incompatible with the new ipython. Just to clarify: you need to delete ONLY the old pysh.py, not your entire $HOME/.ipython/ directory. You

Re: huge help for interactive python

2005-02-16 Thread Fernando Perez
David S. wrote: If you are using ipython on Windows then you will have made sure you have Gary Bishop's readline library as instructed in the ipython install directions found at: http://ipython.scipy.org/ [...] Thanks, very handy. I just reposted your message to the ipyhton-users list,

[ANN] IPython 0.6.11 is out.

2005-02-15 Thread Fernando Perez
Hi all, I'm glad to announce the release of IPython 0.6.11. IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided RPMs (for Python 2.3 and 2.4, built under Fedora Core 3), plus source downloads (.tar.gz). We now also have a

Re: graphing

2005-02-14 Thread Fernando Perez
Jan Rienyer Gadil wrote: i'm currently using python 2.3(enthought edition) on win 2000/xp. i'm using boa constructor on the GUI part and matplotlib 0.71 on plotting the graph. You should post this on the matplotlib list directly, where your chances of a reply are much better. I use

Re: Hack with os.walk()

2005-02-12 Thread Fernando Perez
Michael Spencer wrote: The path module by Jorendorff: http://www.jorendorff.com/articles/python/path/ wraps various os functions into an interface that can make this sort of thing cleaner Wow, many thanks for the pointer. This has to be one of the single most useful small python modules

Re: Hack with os.walk()

2005-02-12 Thread Fernando Perez
Robert Kern wrote: Fernando Perez wrote: Perhaps this path.py could be considered for inclusion in the stdlib? I've only read the page linked above, so perhaps it can use some polishing. But it certainly looks like a big improvement over the scatterblast which the stdlib

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-07 Thread Fernando Perez
Ashot wrote: Sorry, a few more things I forgot to mention having to do with editing multiline entries in the console: Autotab setting doesn't seem to have any effect, I have to type ctrl-o manually I've noticed it doesn't work under win32. It's fine under *nix. There's only so much Gary

  1   2   >