8000 MAINT Fix full doc build by avoiding plot_set_output.py side-effect (… · scikit-learn/scikit-learn@29d89f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29d89f0

Browse files
authored
MAINT Fix full doc build by avoiding plot_set_output.py side-effect (#24654)
1 parent d524875 commit 29d89f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/miscellaneous/plot_set_output.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,8 @@
109109
log_reg = clf[-1]
110110
coef = pd.Series(log_reg.coef_.ravel(), index=log_reg.feature_names_in_)
111111
_ = coef.sort_values().plot.barh()
112+
113+
# %%
114+
# This resets `transform_output` to its default value to avoid impacting other
115+
# examples when generating the scikit-learn documentation
116+
set_config(transform_output="default")

0 commit comments

Comments
 (0)
0