How to invoke ipython in Mac OS X?

L

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.
 
J

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.
 
D

Diez B. Roggisch

Lou said:
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
 
L

Lou Pecora

"Diez B. Roggisch said:
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.
 
L

Lou Pecora

"Jerry said:
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.
 
D

Diez B. Roggisch

Lou said:
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.
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top