Randy, For some reason this approach has turned out to be unstable, so I've basically placed it on "unsupported" status until someone with a better understanding of Python interactive mode than me can take a look at it.
Are you aware that the PyMOL command line is also a Python command line? You can just use PyMOL interactively in that fashion. PyMOL>print 1+1 2 PyMOL>from random import random PyMOL>print random() 0.739460642143 The only major difference is that the default namespace for PyMOL is "pymol" not "__main__" PyMOL>print __name__ pymol Cheers, Warrne -- mailto:war...@delanoscientific.com Warren L. DeLano, Ph.D. Principal Scientist DeLano Scientific LLC Voice (650)-346-1154 Fax (650)-593-4020 > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Randy Heiland > Sent: Friday, May 21, 2004 8:11 AM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] using from native Python > > Can I use PyMOL from native Python? I'm aware of using the > command-line version, but this doesn't let me take an > interpretive approach, with which I'd like to experiment. > > I googled and found that one could supposedly do this: > > >>> import pymol > >>> pymol.finish_launching() > > However, I simply get a seg fault when attempting this (and > can supply more details on that if necessary). Can someone > confirm that this works for them? > > I'm running Python 2.3.2 on Linux and PyMOL 0.95. > > Thanks, Randy > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g Get certified > on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >