EnvSnapshot#

class scikitplot.mlflow.EnvSnapshot(_data)[source]#

Full snapshot of process environment for strict restoration.

Attributes:
datadict[str, str]

A copy of the full environment mapping.

Parameters:

_data (dict[str, str])

Notes

Restoration clears the current environment first to remove any session-added keys.

classmethod capture()[source]#

Capture the current process environment mapping.

Returns:
EnvSnapshot

Captured environment snapshot.

Return type:

Self

property data: dict[str, str]#

A copy of the full environment mapping.

restore()[source]#

Restore the environment exactly to the captured snapshot.

Returns:
None
Return type:

None