Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To my knowledge, there is no way to interact with an existing PyMOL session from the Python interpreter. There are a few alternatives:</p> <ol> <li><p>The existing PyMOL command prompt accepts valid Python and you can <a href="http://www.pymolwiki.org/index.php/Running_Scripts" rel="nofollow">run any script</a> directly from the prompt. Perhaps you could execute your script from there instead?</p></li> <li><p>You can start up a new PyMOL session as part of your script. PyMOL's <code>-i</code> flag may be especially helpful- it enables you to work in a headless environment:</p> <pre class="lang-none prettyprint-override"><code>-i Disable the internal OpenGL GUI (object list, menus, etc.) </code></pre></li> <li><p>Take a careful look at PyMOL's <code>__init.py__</code>. You'll find the intricacies of PyMOL's threading there. Perhaps you can find something useful to manipulate?</p></li> </ol> <h3>Side note:</h3> <p>Calling <code>print</code> from your script will <em>not</em> make the text appear in the PyMOL session, it will merely write the text to standard output (i.e. it will be printed to your terminal).</p> <hr> <p>The following PyMOL wiki pages may be of help to you:</p> <ul> <li><a href="http://www.pymolwiki.org/index.php/Running_Scripts" rel="nofollow">Running scripts</a></li> <li><a href="http://www.pymolwiki.org/index.php/Category%3aLaunching" rel="nofollow">Launching PyMOL</a></li> <li><a href="http://www.pymolwiki.org/index.php/Launching_From_a_Script" rel="nofollow">Launching from a script</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload