[Numpy-discussion] passing "import numpy as np" as python command arg in 'doze
David Goldsmith
d_l_goldsmith at yahoo.com
Fri Aug 14 18:27:25 EDT 2009
Excellent, thanks!
DG
--- On Fri, 8/14/09, Robert Kern <robert.kern at gmail.com> wrote:
> From: Robert Kern <robert.kern at gmail.com>
> Subject: Re: [Numpy-discussion] passing "import numpy as np" as python command arg in 'doze
> To: "Discussion of Numerical Python" <numpy-discussion at scipy.org>
> Date: Friday, August 14, 2009, 3:23 PM
> On Fri, Aug 14, 2009 at 17:18, David
> Goldsmith<d_l_goldsmith at yahoo.com>
> wrote:
> > Thanks, Skipper & Robert; perhaps I'm
> misunderstanding what should happen, but this doesn't appear
> to work in Windoze:
> >
> > Begin Terminal output:
> >
> > C:\Python26>python -c "import numpy as np"
> >
> > C:\Python26>
> >
> > End Terminal output.
> >
> > In other words, no error is returned, but python
> doesn't "stay running".
>
> It's not supposed to, just like "python script.py" doesn't.
> Instead, use
>
> python -i -c "import numpy as np"
>
> http://docs.python.org/using/cmdline.html
>
> If you just want to execute some things before entering
> the
> interpreter every time, use PYTHONSTARTUP instead. Or
> IPython.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma,
> a harmless
> enigma that is made terrible by our own mad attempt to
> interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the NumPy-Discussion
mailing list