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
Fix broken pinfo magic for interface functions #26906
Comments
Commit: |
Author: Markus Wageringel |
Reviewer: Travis Scrimshaw |
comment:3
LGTM. |
comment:4
Actually, wait, there is an issue noted by the patchbot:
|
comment:5
It turns out this happens when **Type:** <class 'sage.interfaces.r.RFunction'>
-**Definition:** r.lm( [noargspec] )
+**Definition:** r.lm(*args, **kwds)
**Docstring:** Here, the |
comment:6
Reported here: sagemath/sagenb#464 |
Upstream: Reported upstream. No feedback yet. |
comment:7
Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist. |
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, in a later stable release. |
comment:8
Replying to @mwageringel:
merged upstream. |
Dependencies: #27200 |
comment:9
#27200 - new sagenb release, with the needed patch. |
comment:10
I have checked that this patch cures the display of |
Changed reviewer from Travis Scrimshaw to Travis Scrimshaw, Dima Pasechnik |
comment:11
Patchbot is still getting the same failures as comment:4. |
comment:12
Scratch that, it didn't run with the upgraded sagenb. Upgrading sagenb and running that test passes (on linux). So back to positive. |
Changed branch from u/gh-mwageringel/interfaces_pinfo to |
For some interfaces, using the IPython
%pinfo
/%pinfo2
magic or the questionmark syntax for viewing the help and source code fails with anAttributeError
(see below).The interfaces R and Macaulay2 are affected by this, possibly others as well.
This bug occurs in the console as well as the Jupyter notebook. The oldstyle notebook does not seem to be affected. Possibly related: #11913 and #10860.
I found the bug to be caused by
sage.misc.sageinspect.sage_getargspec
returningNone
in this case, which apparently is not supported by IPython.Here is the stack trace:
Tested using Sage 8.5.rc1 on OS X and Linux.
Depends on #27200
Upstream: Fixed upstream, in a later stable release.
Component: interfaces
Keywords: pinfo, introspection, IPython, R, macaulay2
Author: Markus Wageringel
Branch/Commit:
b1c5aa7
Reviewer: Travis Scrimshaw, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/26906
The text was updated successfully, but these errors were encountered: