Session.save_session#

Session.save_session(filepath, sections=None)[source]#

Save session state to filepath.

Parameters:
filepathstr

Destination file path.

sectionsdict, optional

Extra sections to include in the file, mapping section names to (encoding, data) tuples (e.g. {"thumbnail": ("png", bytes)}).

Returns:
str

Path written, with a .pickle extension replaced by .mosaic.