How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
I installed the SciPy superpackage and have pylab, matplotlib, scipy, 
and numpy apparently running well.  But I want to use matplotlib/pylab 
interactively.  The instructions suggest doing this in IPython.  But 
using ipython on the command line gives me an error.  The system doesn't 
know the command.  Apparently there is no ipython executable in one of 
the bin directories.  I thought the superpackage would add that 
automatically, but I guess not.  

Can anyone tell me how to get ipython running on my MacOSX 10.4 system?

Thanks for any help.

(Yes, I asked on the SciPy email list, but never got an answer.)

-- Lou Pecora  (my views are my own) REMOVE THIS to email me.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Jerry
Did you install it with the --install-scripts command line option?  If
you did, then there will be a ipython script located in the
$INSTALL_SCRIPTS/bin directory.  If you didn't, then I think the
default location is /usr/lib/python or something like that.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Diez B. Roggisch
Lou Pecora wrote:

 I installed the SciPy superpackage and have pylab, matplotlib, scipy,
 and numpy apparently running well.  But I want to use matplotlib/pylab
 interactively.  The instructions suggest doing this in IPython.  But
 using ipython on the command line gives me an error.  The system doesn't
 know the command.  Apparently there is no ipython executable in one of
 the bin directories.  I thought the superpackage would add that
 automatically, but I guess not.
 
 Can anyone tell me how to get ipython running on my MacOSX 10.4 system?

This is just a guess - but did you check your

/Library/Frameworks/Python.framework/Versions/Current/bin

(out of my head, but should be precise enough to get you there)

directory for the ipython-binary? Usually, that will be the prefix of
anything compiled/installed to framework-builds. So either you add that to
your path, or create links to e.g. /usr/local/bin



Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
In article [EMAIL PROTECTED],
 Diez B. Roggisch [EMAIL PROTECTED] wrote:

 Lou Pecora wrote:
 
  I installed the SciPy superpackage and have pylab, matplotlib, scipy,
  and numpy apparently running well.  But I want to use matplotlib/pylab
  interactively.  The instructions suggest doing this in IPython.  But
  using ipython on the command line gives me an error.  The system doesn't
  know the command.  Apparently there is no ipython executable in one of
  the bin directories.  I thought the superpackage would add that
  automatically, but I guess not.
  
  Can anyone tell me how to get ipython running on my MacOSX 10.4 system?
 
 This is just a guess - but did you check your
 
 /Library/Frameworks/Python.framework/Versions/Current/bin


Just checked it. Nothing there for IPython.

 directory for the ipython-binary? Usually, that will be the prefix of
 anything compiled/installed to framework-builds. So either you add that to
 your path, or create links to e.g. /usr/local/bin

I'm not quite following this last suggestion.  Can you explain more. 
Sorry.

-- Lou Pecora  (my views are my own) REMOVE THIS to email me.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
In article [EMAIL PROTECTED],
 Jerry [EMAIL PROTECTED] wrote:

 Did you install it with the --install-scripts command line option?  If
 you did, then there will be a ipython script located in the
 $INSTALL_SCRIPTS/bin directory.  If you didn't, then I think the
 default location is /usr/lib/python or something like that.

No, I did not use the install-scripts command line option.  It was 
installed from the Package (it's down there in 
/Library/Frameworks/Python...blah, blah/site-packages/IPython).

-- Lou Pecora  (my views are my own) REMOVE THIS to email me.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Diez B. Roggisch
Lou Pecora wrote:

 In article [EMAIL PROTECTED],
  Diez B. Roggisch [EMAIL PROTECTED] wrote:
 
 Lou Pecora wrote:
 
  I installed the SciPy superpackage and have pylab, matplotlib, scipy,
  and numpy apparently running well.  But I want to use matplotlib/pylab
  interactively.  The instructions suggest doing this in IPython.  But
  using ipython on the command line gives me an error.  The system
  doesn't
  know the command.  Apparently there is no ipython executable in one of
  the bin directories.  I thought the superpackage would add that
  automatically, but I guess not.
  
  Can anyone tell me how to get ipython running on my MacOSX 10.4 system?
 
 This is just a guess - but did you check your
 
 /Library/Frameworks/Python.framework/Versions/Current/bin
 
 
 Just checked it. Nothing there for IPython.

Are you sure you checked in all possible locations - it might well be that
e.g. the shipped python2.3 is under 

/System/Library/

I can't check up on that myself, as at work I'm using Linux.

Where it is depends on which python interpreter you used to compile scipy.
And possibly it got installed under /usr/local/bin - this could be caused
by scipy installing it there.
 
 directory for the ipython-binary? Usually, that will be the prefix of
 anything compiled/installed to framework-builds. So either you add that
 to your path, or create links to e.g. /usr/local/bin
 
 I'm not quite following this last suggestion.  Can you explain more.

_If_ the binary got installed there, you need to add the path to your
PATH-environment, or create a link to a location that is in the path.

For example, I have

ln -s /Library/Frameworks/Python.framework/Versions/2.4/bin/pydoc 
/usr/bin/pydoc2.4

on my system, to have the pydoc2.4 command available.

You could also create an alias, of course.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list