Launch IDLE on Default Leopard Installation

Here at Pycon 2008 I was lamenting to David on how Leopard’s default install of Python has no IDLE interface. He clued me into how to launch it from the interpreter:

>>> import idlelib.idle

Also, from the regular shell:

python -m idlelib.idle

Wait for a few seconds, and there you have it.

7 thoughts on “Launch IDLE on Default Leopard Installation

  1. hi , can’t get IDLE working on 10.5.6 with python 3 rc1

    import tkinter # directory /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter
    # /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter/__init__.pyc matches /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter/
    import tkinter # precompiled from /opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter/__init__.pyc
    ** IDLE can’t import Tkinter. Your Python may not be configured for Tk. **

  2. I tried some ide download down to my mac 10.5.8, but when i click on idle app, it does open. i tried to invoke from terminal using above mentioned instruction, but in vain. pls help, i’m mission a great deal in my class.

  3. Thank you for posting this. I’ve been going crazy trying to find IDLE. A command line launch wasn’t easy to find. Thanks again!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>