472,347 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,347 software developers and data experts.

How to invoke ipython in Mac OS X?

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
5 3187
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Yaroslav Bulatov | last post by:
> Hi, > > Equis Uno wrote: > > > I use meta-x shell to start a shell and then once I see a shell > > prompt I enter the python command and I get...
3
by: Dave Merrill | last post by:
Hi, I'm new to python, and ipython, but not to programming, having trouble getting ipython installed on windows 2000, python 233. Any help would be...
1
by: Jeremy Jones | last post by:
I've written an article on IPython which is now live on O'Reilly's ONLamp site at http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html. All...
1
by: Michael Tobis | last post by:
It appears that doctest does not work straightforwardly within iPython. I would like to be able to use doctest within a file conditionally, so...
0
by: Fernando Perez | last post by:
Hi all, The IPython team is happy to release version 0.7.2, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy...
0
by: James Stroud | last post by:
Hello, I found this page: http://projects.scipy.org/ipython/ipython/wiki/CookBook#Usinggviminservermode But it does not seem to work for me....
0
by: Ville Vainio | last post by:
Hi all, The IPython team is happy to release version 0.7.3, with a lot of new enhancements, as well as many bug fixes (including full Python 2.5...
1
by: Karlo Lozovina | last post by:
Based on the idea from 'Open Command Window Here' utility from MS - add a context menu item, which allows you to open IPython in selected directory....
0
by: Michele Simionato | last post by:
This should probably go to the IPython list, but since I am not subscribed I will try my luck here. Basically, I want to embed IPython inside a...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.