|
From: Thomas H. <tho...@sc...> - 2018-04-23 17:15:53
|
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 <su...@cr...> 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.
|