restore_context#

Session.restore_context(context: enscontext.EnsContext) None#

Restore the current EnSight instance state.

This method restores EnSight to the state stored in an EnsContext object that was either read from disk or returned by the capture_context method.

Parameters:
contextenscontext.EnsContext

Context to set the current EnSight instance to.

Examples

>>> tmp_ctx = session.capture_context()
>>> session.restore_context(EnsContext("session_context.ctxz"))
>>> session.restore_context(tmp_ctx)