Skip to content

Commit de3a176

Browse files
authored
Surpress warnings on docs (#551)
1 parent 3103cb8 commit de3a176

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def __getattr__(self, name):
8484

8585
warnings.filterwarnings(
8686
"ignore",
87-
message=r"The rc setting 'colorbar.rasterize' was deprecated.*",
8887
category=UltraPlotWarning,
8988
)
9089
except Exception:
9190
pass
9291

92+
9393
# Print available system fonts
9494
from matplotlib.font_manager import fontManager
9595
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey
@@ -349,6 +349,9 @@ def _reset_ultraplot(gallery_conf, fname):
349349

350350
nbsphinx_execute = "auto"
351351

352+
# Suppress warnings in nbsphinx kernels without injecting visible cells.
353+
os.environ.setdefault("PYTHONWARNINGS", "ignore::UserWarning")
354+
352355
# Sphinx gallery configuration
353356
sphinx_gallery_conf = {
354357
"doc_module": ("ultraplot",),

0 commit comments

Comments
 (0)