RPC: Difference between revisions
Jump to navigation
Jump to search
(created) |
m (category) |
||
Line 22: | Line 22: | ||
* [[Launching From a Script]] | * [[Launching From a Script]] | ||
* [[Launching PyMOL]] | * [[Launching PyMOL]] | ||
[[Category:Launching]] |
Revision as of 11:44, 17 October 2011
Remote control of PyMOL is possible with XML-RPC.
Launch PyMOL with the "-R" option to start the RPC server.
pymol -R
Connect from any client, using python:
import xmlrpclib
srv = xmlrpclib.Server('http://localhost:9123')
srv.do('fetch 2xwu')
srv.do('as cartoon')
srv.do('spectrum')