open_session#

open_session(filepath)[source]#

Read session state, handling both legacy and indexed formats.

Parameters:
filepathstr

Path to a session file.

Returns:
dict

Deserialised session state.