config_context#
- skore.config_context(*, show_progress=None)[source]#
- Context manager for skore configuration. - Setting the configuration affects global settings meaning that it will be used by all skore functions and classes, even in the processes and threads spawned by skore. - Parameters:
- show_progressbool, default=None
- If True, show progress bars. Otherwise, do not show them. 
 
- Yields:
- None.
 
 - See also - set_config
- Set skore configuration. 
- get_config
- Retrieve current values of the configuration. 
 - Notes - All settings, not just those presently modified, will be returned to their previous values when the context manager is exited. - Examples - >>> import skore >>> from sklearn.datasets import make_classification >>> from sklearn.model_selection import train_test_split >>> from sklearn.linear_model import LogisticRegression >>> from skore import CrossValidationReport >>> with skore.config_context(show_progress=False): ... X, y = make_classification(random_state=42) ... estimator = LogisticRegression() ... report = CrossValidationReport(estimator, X=X, y=y, cv_splitter=2)