Skip to content

Commit 07137a5

Browse files
DOC: ignore Panel deprecation warnings during doc build (#19663)
1 parent df38f66 commit 07137a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/conf.py

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import re
1616
import inspect
1717
import importlib
18+
import warnings
19+
1820
from pandas.compat import u, PY3
1921

2022
try:
@@ -375,6 +377,13 @@
375377
'wiki': ('https://github.com/pandas-dev/pandas/wiki/%s',
376378
'wiki ')}
377379

380+
381+
# ignore all deprecation warnings from Panel during doc build
382+
# (to avoid the need to add :okwarning: in many places)
383+
warnings.filterwarnings("ignore", message="\nPanel is deprecated",
384+
category=FutureWarning)
385+
386+
378387
ipython_exec_lines = [
379388
'import numpy as np',
380389
'import pandas as pd',

0 commit comments

Comments
 (0)