iPython on Mac OS X

What worked for me; short and simple:

1) Install iPython

  1. sudo easy_install ipython

2) Download the file/egg for Mac OSX readline, and place in path, then edit easy_install.pth

  1. Download:  http://ipython.scipy.org/dist/readline-2.5.1-py2.5-macosx-10.5-i386.egg
  2. cp ~/Downloads/readline-2.5.1-py2.5-macosx-10.5-i386.egg .
  3. sudo vim easy-install.pth
  4. While editing the file add:   ./readline-2.5.1-py2.5-macosx-10.5-i386.egg

3) Run iPython and test.

Advertisements

2 responses to “iPython on Mac OS X

  1. Pingback: Getting IPython readline and auto-completion to work on Mac OS X | Patrick's playground

  2. Just one little detail: you need to do all this in the site-packages directory, e.g. /Library/Python/2.5/site-packages.

    My new easy-install.pth file:
    import sys; sys.__plen = len(sys.path)
    ./ipython-0.10-py2.5.egg
    ./readline-2.5.1-py2.5-macosx-10.5-i386.egg
    import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,’__egginsert’,0); sys.path[p:p]=new; sys.__egginsert = p+len(new)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s