Re: [PyMOL] pymol.finish_launching(['pymol', '-qc']) causes 100% CPU usage

2018-03-15 Thread Yang Su
a new thread > with an event loop, which will cause 100% CPU usage (at least with "-c"). > > Cheers, > Thomas > > > On Mar 15, 2018, at 1:35 AM, Yang Su <s...@crystal.harvard.edu> wrote: > > > > Dear List, > > > > I would lik

[PyMOL] pymol.finish_launching(['pymol', '-qc']) causes 100% CPU usage

2018-03-14 Thread Yang Su
Dear List, I would like to use some of the pymol capabilities with my other python code in jupyter notebook. But after running import pymol pymol.finish_launching(['pymol', '-qc']) CPU usage stays at 100% for the python process. After pymol.cmd.quit() CPU usage returns to normal. I see the

Re: [PyMOL] Multiple PyMOL Instances in Python Script

2018-04-24 Thread Yang Su
l2 > 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 <s...@crystal.harvard.edu> wrote:

[PyMOL] Multiple PyMOL Instances in Python Script

2018-04-19 Thread Yang Su
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

Re: [PyMOL] Dashed/Dotted Lines for Ribbon Representation

2018-04-19 Thread Yang Su
t; cartoon dash > > See also: > https://pymolwiki.org/index.php/Cartoon#USAGE > > Cheers, > Thomas > > > On Apr 19, 2018, at 12:54 PM, Yang Su <s...@crystal.harvard.edu> wrote: > > > > Hi, > > > > Is there an option to show the ribbon as dashed o

Re: [PyMOL] Dashed/Dotted Lines for Ribbon Representation

2018-04-19 Thread Yang Su
coding is already used to represent other properties. Best, Yang On Thu, Apr 19, 2018 at 3:56 PM, Yang Su <s...@crystal.harvard.edu> wrote: > Thanks for the tip, Thomas. 'cartoon dash' works with cartoon > representation, but doesn't seem to affect the ribbon representation. For > s

Re: [PyMOL] Dashed/Dotted Lines for Ribbon Representation

2018-04-19 Thread Yang Su
, > Thomas > > > On Apr 19, 2018, at 4:15 PM, Yang Su <s...@crystal.harvard.edu> wrote: > > > > Also, 'cartoon dash' and 'cartoon loop' render beta-strands differently, > so I can't combine the two and get a consistent look and feel. The use case > is to show reg