Issuing the Python command will put you into a stateful pseudo-interactive Python session. Or, more simply it's stateful in that you can invoke the Python session write some code, end the session, then restart the session and your data will be saved (see Example 1). It's pseudo-interactive in that you don't get feedback until you type "python end," upon which your code is run the output appears.
This is a helpful command for testing different scripting or state-editing strategies for movie making.
# start the session
# your Python code goes here
# end the session
- Start the session. Set x to 10. End the session. Restart the session and see if the value of x is recalled.
x = 10
Python scripts and commands used within PyMOL can only be written using the current version of ..→