Save and Restore State
You can export the full widget state (atoms, viewer settings, plugins, camera, measurement, and animation) as JSON and load it later.
Example (Python)
# export
state = viewer.export_state()
# save to file
viewer.save_state("snapshot.json")
# load later
viewer.load_state("snapshot.json")
Class method
viewer = WeasWidget.from_state_file("snapshot.json")