From 2f54942d6b2e62e56a66efeb4d4416c88699e641 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sun, 21 Oct 2018 17:01:23 -0700 Subject: [PATCH] Prepare for ipython 7.1 stricter ipython directive. In 7.1 the IPython directive will be stricter about unexpected error/warnings _by default_ and will stop the build. This can be disabled globally with ipython_warn_is_error, or on a per-block basis by setting the appropriate `:okwarning:`/`okexcept` I was only able to go that far as other things were preventing me from finishing the build (some document not included in any toctree), but at least this is one less error. --- doc/users/prev_whats_new/whats_new_1.5.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/users/prev_whats_new/whats_new_1.5.rst b/doc/users/prev_whats_new/whats_new_1.5.rst index 9e7ca186252b..38d0838d2f78 100644 --- a/doc/users/prev_whats_new/whats_new_1.5.rst +++ b/doc/users/prev_whats_new/whats_new_1.5.rst @@ -37,6 +37,7 @@ The upshot of this is that for interactive backends (including ``%matplotlib notebook``) in interactive mode (with ``plt.ion()``) .. ipython :: python + :okwarning: import matplotlib.pyplot as plt