Skip to content

Commit b2e1cd0

Browse files
authored
Suppress warnings in validation notebook (#587) (#1696)
The original 2022 report ("Aggregates in full") referred to a section that has since been rewritten away, and the current saved outputs are already clean. Add an explicit warnings filter at the top of the notebook so a future kernel re-run (e.g. pandas FutureWarning from pd.concat in a loop) doesn't leak warning streams back into the docs.
1 parent 285acdf commit b2e1cd0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

changelog.d/587.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Suppress Python warnings at the top of the validation notebook so re-executions don't surface pandas/plotly deprecation noise in the docs build.

docs/book/validation/validation.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,9 @@
17891789
}
17901790
],
17911791
"source": [
1792+
"import warnings\n",
1793+
"warnings.filterwarnings(\"ignore\")\n",
1794+
"\n",
17921795
"from policyengine_uk import Microsimulation\n",
17931796
"\n",
17941797
"sim = Microsimulation()\n",

0 commit comments

Comments
 (0)