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 predictably defaults.

Returns:
None

No output returned.

See also

config_context

Configuration context manager.

get_default_config

Retrieve predictably’s default configuration.

get_config

Retrieve current global configuration values.

set_config

Set 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