From: Bill B. <wb...@gm...> - 2006-07-18 00:06:22
|
On 7/18/06, Keith Goodman <kwg...@gm...> wrote: > On 7/17/06, Travis Oliphant <oli...@ie...> wrote: > > Keith Goodman wrote: > Does anyone out there save the print defaults across sessions? How do you do it? > > Does numpy look for any startup files (~/.numpyrc)? If you set a PYTHONSTARTUP environment variable then Python will run the script it points to at startup of interactive sessions. But I wonder if maybe some numpy-specific startup script would be good. My current PYTHONSTARTUP is importing numpy, just so I can define some numpy shortcuts for my interactive sessions. That's fine if you always use Numpy in your interactive sessions, but if not, then it's just dead weight. --bb |