-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Prepare for ipython 7.1 stricter ipython directive. #12587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
This is related to #12583 |
@@ -37,6 +37,7 @@ The upshot of this is that for interactive backends (including | |||
``%matplotlib notebook``) in interactive mode (with ``plt.ion()``) | |||
|
|||
.. ipython :: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should just have this as a code markup block, and not an ipython block? Otherwise we're just trying to keep code from MPL 1.5 running on new versions of MPL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be fine for me too, but that will removed the rendered plot.
You could also set to :verbatim:
so it won't try to process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's all that important to see the plot in this specific case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, because you can not see it change!
In *this* case, sure. But in general I'm sure other places in the docs will
fail and would need fixing :-)
…On Mon, Oct 22, 2018, 18:31 Thomas A Caswell ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In doc/users/prev_whats_new/whats_new_1.5.rst
<#12587 (comment)>
:
> @@ -37,6 +37,7 @@ The upshot of this is that for interactive backends (including
``%matplotlib notebook``) in interactive mode (with ``plt.ion()``)
.. ipython :: python
Indeed, because you can not see it change!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUez8ZTdtRhXWpN9ZJtsIEM01MxRZTnks5unnF_gaJpZM4XyzaC>
.
|
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.
Also this should give you a heads up, that IPython 7.1 should be released soon-ish (I hope end of week as it introduce some fixes and compatibility with Python 3.7.1, that if all build breaks it will likely not be your fault.