From 176317663e84cf454d412e4f3e39eb4cafbc132e Mon Sep 17 00:00:00 2001 From: James McCreight Date: Thu, 17 Oct 2024 16:52:31 -0600 Subject: [PATCH] suppress warnings temporarily in CI part 6, ipython dosent take -W --- autotest_exs/test_notebooks.py | 5 +---- examples/06_flow_graph_starfit.ipynb | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/autotest_exs/test_notebooks.py b/autotest_exs/test_notebooks.py index 28bc7c7c..62c37fbd 100644 --- a/autotest_exs/test_notebooks.py +++ b/autotest_exs/test_notebooks.py @@ -37,10 +37,7 @@ def test_notebooks(notebook): ipython = bin_path / "ipython" assert ipython.exists(), f"ipython not found at: {ipython}" - if "06" == str(notebook.name)[0:2]: - cmd = ["ipython", "-Wignore", str(nb_py)] - else: - cmd = ["ipython", str(nb_py)] + cmd = ["ipython", str(nb_py)] proc = subprocess.run(cmd) assert proc.returncode == 0, f"Running the notebook failed: {notebook}" diff --git a/examples/06_flow_graph_starfit.ipynb b/examples/06_flow_graph_starfit.ipynb index 3a97f4a6..8908dca3 100644 --- a/examples/06_flow_graph_starfit.ipynb +++ b/examples/06_flow_graph_starfit.ipynb @@ -48,7 +48,11 @@ "plot_height = 600\n", "plot_width = 1000\n", "\n", - "jupyter_black.load()" + "jupyter_black.load()\n", + "\n", + "# to remove:\n", + "import warnings\n", + "warnings.filterwarnings(\"ignore\")" ] }, {