Hi Yang,
Yes it's possible to have independent instances. The API has actually been
around for a long time. For some reason it was never widely adopted and thus is
not very thoroughly tested. Please report any bugs you encounter.
Example:
import pymol2
p = pymol2.PyMOL()
p.start()
p.cmd.fragment('ala')
p.cmd.show_as('sticks')
p.cmd.zoom()
p.cmd.png('/tmp/ala.png', 1000, 800, dpi=150, ray=1)
p.stop()
Cheers,
Thomas
> On Apr 19, 2018, at 3:33 PM, Yang Su <[email protected]> wrote:
>
> Hi,
>
> Is it possible to start multiple independent pymol backend processes in a
> python script/jupyter notebook? Now with PyMOL 2.1 I can 'import pymol' and
> call a pymol.cmd function to start a backend process, but this is kind of
> 'global'. I'm looking for a way to manage multiple PyMOL sessions in
> parallel, each manipulating its own structures.
>
> Thanks,
> Yang
--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]