The short explanation is you need to really be careful with syntax and build off examples in the documentation and found on the web.
For example, already your load command doesn't follow syntax. From the documentation on the load command:
- Load xyz.pdb using the PyMOL API:
So you'll note that your current version,
pymol.cmd.load(6UFO), doesn't match having quotes, case, extension, etc..
pymol.cmd part is okay. You'll see the documentation and my examples use a variation that makes for less typing by assigning
cmd. I'll try to use the way you are doing it in my example below so that you get a sense of the variations and how to adapt.)
Full explanation by way of example:
I put together an example using your code at the bottom of a notebook that demonstrates the use of PyMOL's
super command first using the supplied demonstration in the documentation and combines it with making a figure. This is a later entry in a series of demonstrations. To best understand some of the basics used in the demonstration, you should work through the first available notebook listed in the series. While it doesn't involve a superposition, it does involve getting structures using PyMOL loading them into PyMOL, and generating images, all on a remote server. And so it gives a good place to build from to understand what is going on in the superposition demonstration.
To get started go here and press
launch binder. When the session spins up in your browser, work through the first notebook listed under available notebooks. Then check out the one listed as 'Demo of Superimposing Two Structures via PyMOL Super Command'.
(Here is the direct link to the static version of that specific Jupyter notebook for when you simply need to review it for quick reference.)