-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Update doctests for compatibility with ipython 8.x #33170
Comments
Branch: u/arojas/update_to_ipython_8 |
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
comment:3
(Thank you for maintaining Sage on archlinux! Just updated to 9.5) I think it might be a good idea to document somewhere how to disable the autoformatter and suggestion in IPython 8, which are enabled by default (also useful for people who haven't updated to IPython 8 and want to enable these features)
|
comment:4
According to release notes, IPython 8 is still in alpha/beta stage, https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0 So I don't think we should do the actual update soon. Perhaps open a separate ticket for the update and only put doctest adjustments on the present ticket? |
comment:5
Replying to @8d1h:
In my opinion, we should actually disable these features by default. They change Sage's behavior in a potentially very irritating way and many users won't even know what is causing it and which keywords to search for to change it back. |
comment:6
I filed alexmojaki/stack_data#21 to address the lack of Cython source code in tracebacks. I also asked for a clarification with regards to IPython 8's stability and, according to the developer, IPython 8 is a stable release; the notice in the release notes about it being alpha/beta quality just wasn't removed soon enough. |
comment:7
Although I won't have time to test it until next week, upstream just reported that Cython source code should now appear on tracebacks if Python package |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Replying to @collares:
Confirmed, thanks. Test still failed because of slightly different syntax, should be fixed now. |
comment:10
In addition to the failure reported in the description (which a90a314 fixes) I'm getting two more doctest failures when upgrading to ipython 8.0.1:
The following patch fixes these:
|
comment:12
Replying to @antonio-rojas:
My bad, it's there indeed as c373551, thanks. Sorry for the noise. |
comment:14
This works ok with ipython 8.0.1, but it's already broken on ipython 8.1.0 and 8.1.1:
Can you add the following patch on top of your previous commits?
The other file (interface_magic.py) is still ok with ipython 8.1. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Done, thanks. Needs review since this is now only about fixing tests. |
Author: Antonio Rojas |
comment:19
Thanks, I'll give positive review once CI on void-linux/void-packages#36209 is done. |
comment:20
All ok on void linux using system ipython 8.1 (glibc 64 and 32 bit, musl 64 bit tested at void-linux/void-packages#36209) |
Reviewer: Gonzalo Tornaría |
comment:21
Replying to @collares:
I've opened #33530 for the actual update. This is for Sage 9.7 because the update will require us to drop support for Python 3.7. |
Changed branch from u/arojas/update_to_ipython_8 to |
Besides trivial output format changes, the only breakage seems to be tracebacks no longer showing cython source code
The update itself requires a bunch of new dependencies
CC: @mkoeppe @kiwifb @collares
Component: packages: standard
Author: Antonio Rojas
Branch/Commit:
4d2b53f
Reviewer: Gonzalo Tornaría
Issue created by migration from https://trac.sagemath.org/ticket/33170
The text was updated successfully, but these errors were encountered: