Hi, Instead of using Mac IDLE, use Fink IDLE: which idle2.5 /sw/bin/idle2.5
It works! Cheers, Alan On Tue, Jun 10, 2008 at 1:25 AM, <pymol-users-requ...@lists.sourceforge.net> wrote: > Date: Wed, 4 Jun 2008 11:24:16 -0400 > From: "hari jayaram" <hari...@gmail.com> > Subject: [PyMOL] launch pymol from inside an IDLE ( python-ide) > interactive shell ? > To: pymol-users@lists.sourceforge.net > Message-ID: > <aad3caa30806040824p50f877e3n419882e30730d...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi I am trying to use python from inside of the idle (IDLE) IDE that is > part > of the MacPython 2.5.2 additional packages as IDLE.app. > The reason I want to do this is because I really want to get an IDE ( > integrated development environment ) with good code completion on all > modules including maybe pymol. > > In any case when I do the following (see attached > png<http://code-itch.s3.amazonaws.com/images/idle_pymol_how.jpg> > ) > > 1) Start IDLE and then in the IDLE shell I do > 2) Import my fink python after adding it to my path > > import sys > sys.path.append("/sw/lib/pymol-py25/modules") > import pymol > > After that command I see that the idle Python shell waits for a little bit > and then I see =====restart==== .and no pymol window appears > Also when I try running pymol.finish_launching() > > It says pymol is not defined. > > I have tried reading some of the posts about how the import pymol method is > the least supported method for launching pymol. I should add that on my > setup i.e Leopard 10.5.2 with fink pymol-py25 the above approach works from > a standalone script as well as from a python interactive shell from > terminal.app or Item.app . Sadly both of these dont have popup code > completion.. > > But I was wondering if there is some way to have my cake and eat it too and > interact with pymol from within an IDLE shell window. > > Hari Jayaram > -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. >>http://www.bio.cam.ac.uk/~awd28<<