predictably.reset_config#
- predictably.reset_config() None[source]#
Reset the global configuration to the default.
Will remove any user updates to the global configuration and reset the values back to the
predictablydefaults.- Returns:
- None
No output returned.
See also
config_contextConfiguration context manager.
get_default_configRetrieve
predictably’s default configuration.get_configRetrieve current global configuration values.
set_configSet global configuration.
Examples
>>> from predictably import get_config, set_config, reset_config >>> get_config() {'dataframe_backend': 'polars', ..., 'display': 'text'} >>> set_config(display='diagram') >>> get_config() {'dataframe_backend': 'polars', ..., 'display': 'diagram'} >>> get_config() == get_default_config() False >>> reset_config() >>> get_config() {'dataframe_backend': 'polars', ..., 'display': 'text'} >>> get_config() == get_default_config() True