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 thecapture_context
method.- Parameters:
- context
enscontext.EnsContext
Context to set the current EnSight instance to.
- context
Examples
>>> tmp_ctx = session.capture_context() >>> session.restore_context(EnsContext("session_context.ctxz")) >>> session.restore_context(tmp_ctx)