On 1/11/07, belinda thom <[EMAIL PROTECTED]> wrote: > Hi, > > > With the exception of ipython -pylab, noone is forcing you to import > > *. And on the subject, Fernando, perhaps we should support a pylab > > mode in ipython which doesn't dump the pylab namespace (or maybe just > > dumps the required figure, show, close, nx), but does the interactive > > backend stuff. > > In the meantime, I did the following to my local dev copy of IPython: > Instead of the existing "import..." viq exec into user namespace, I do: > import pylab as P > import numpy as N > import matplotlib as M > > It would be nice if controlling this type of thing was configurable.
It now is: set pylab_import_all 0 in your ~/.ipython/ipythonrc file, and when using -pylab, ipython will only import the names 'matplotlib' and 'pylab', but it will NOT do from pylab import * anymore. Cheers, f ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users