So far, all of the examples have launched PyMOL at the time the web page was opened. However, this isn't necessary: with a multi-origin application, or or more instances of PyMOL can be launched on demand, each on its own port, simply by populating an IFRAME with a PWG file.
launchPymol(8085) launchPymol(8086) usePymol8085() usePymol8086() quitPymol(8085) quitPymol(8086)
In addition launching multiple simultaneous PyMOL instances, this sample application also demonstrates the use of the "options" keyword in the associated PWG files, which is being used to modify the startup configuration of PyMOL so as to launch as a simple 3D viewer window. A restricted subset of standard PyMOL command-line arguments are available for such customization tasks. For information on launch options, please refer to the Official PyMOL Documentation.
startup8085.pwg
port 8085 options -qxie -F 0 -X 10 -Y 50 -W 250 -H 250
startup8085.pwg
port 8086 options -qxi -F 0 -X 10 -Y 350 -W 250 -H 250