By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

How to invoke ipython in Mac OS X?

P: n/a
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.
Oct 17 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

Oct 17 '06 #2

P: n/a
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
Oct 17 '06 #3

P: n/a
In article <4p************@uni-berlin.de>,
"Diez B. Roggisch" <de***@nospam.web.dewrote:
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.
Oct 17 '06 #4

P: n/a
In article <11**********************@e3g2000cwe.googlegroups. com>,
"Jerry" <jw****@gmail.comwrote:
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.
Oct 17 '06 #5

P: n/a
Lou Pecora wrote:
In article <4p************@uni-berlin.de>,
"Diez B. Roggisch" <de***@nospam.web.dewrote:
>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
Oct 17 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.