SimpleSession icon

SimpleSession allows many aspects of the state of Chimera during modeling (a session) to be saved and restored. A session file consists of Python code that reconstitutes the state of Chimera by displaying data and performing other operations.

Molecular coordinate and sequence alignment data are included in the session file; however, volume data files must still be present to restart a session in which they were open. When a session with volume data is restarted, the user may be queried about file location(s) if the data or the session file have been moved since the session was saved.

There are several ways to start SimpleSession, a tool in the Utilities category. Starting SimpleSession opens a dialog for saving the session file.

Other ways to save a session all use the SimpleSession functionality:

There is also more than one way to restart a session: If a session includes a structure that has duplicate atom names within the same residue, it will not restore correctly. Opening a session will not close any existing models. File... Close Session can be used to clear the contents of the existing session without exiting from Chimera.

Opening a session file creates a compiled version of the file, given the same name except *.pyc instead of *.py. The presence of the compiled version speeds up session restoration. Since the compiled (*.pyc) file contains complete session information, opening it will start the session even when the *.py file has been deleted. One disadvantage of the compiled session file, however, is that unlike the uncompiled version, its contents cannot be viewed and edited with a text editor.

In the future, a more complete session-saving mechanism will be available. Information that is saved includes:

Information that is not saved includes:


UCSF Computer Graphics Laboratory / September 2004