config_context#
- skore.config_context(*, show_progress=None, plot_backend=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. 
- plot_backend{“matplotlib”, “plotly”}, default=None
- The plotting backend to be used. - "matplotlib": Use Matplotlib for plotting
- "plotly": Use Plotly for plotting
- None: Plotting backend is unchanged
 
 
- 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 skore import train_test_split >>> from sklearn.datasets import make_classification >>> from sklearn.linear_model import LogisticRegression >>> from skore import CrossValidationReport >>> with skore.config_context(show_progress=False, plot_backend="matplotlib"): ... X, y = make_classification(random_state=42) ... estimator = LogisticRegression() ... report = CrossValidationReport(estimator, X=X, y=y, splitter=2)