473,770 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3283
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_SCRIPT S/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.framewor k/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.w eb.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.framewor k/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************ **********@e3g2 000cwe.googlegr oups.com>,
"Jerry" <jw****@gmail.c omwrote:
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_SCRIPT S/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.w eb.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.framewor k/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.framewor k/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
2652
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 a well-behaved python > > shell inside of emacs. > > > > I'm trying to figure out the best way to run ipython inside of emacs.
3
1566
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 much appreciated; I'm sure I'm being some basic flavor of dense... First downloaded and installed PythonWin, readline and ctypes. They're all pretty clearly here and working, because I can run PythonWin, and from there, importing readline and ctypes works. Then downloaded ipython-0.6.6.zip...
1
1728
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 feedback is welcome. Regardless of what you may think of the article, I hope it encourages everyone to at least try out IPython. IPython has become an indispensible tool in my toolbox. I cannot say enough great things about it. Jeremy Jones
1
1954
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 that I can develop it within ipython and test it otherwise. It would seem that this would work: Python 2.4.1 (#2, Mar 31 2005, 00:05:10) on darwin
0
1284
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 it, and please report any problems as usual. WHAT is IPython? ----------------
0
1405
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. I set the editor in ipythonrc to gvim. Then I followed the instructions, step by step. To needlessly paraphrase the instructions:
0
1061
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 support). We hope you all enjoy it, and please report any problems as usual. WHAT is IPython?
1
4832
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. ---cut-here--- Windows Registry Editor Version 5.00 @="IPython here"
0
938
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 command line interpreter based on cmd.Cmd, in this way: import cmd, IPython class Cmd(cmd.Cmd): def do_ipython(self, arg):
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.