Skip to content
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

Introspection broken for SageX'd files from notebook. #354

Closed
boothby opened this issue Apr 22, 2007 · 4 comments
Closed

Introspection broken for SageX'd files from notebook. #354

boothby opened this issue Apr 22, 2007 · 4 comments

Comments

@boothby
Copy link

boothby commented Apr 22, 2007

Offending code:

F = ZZ.quo(2*ZZ)
R.<x> = F['x']
p = x^2-1
p.root_field?

Traceback:

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/home/boothby/sage_notebook/worksheets/hw4/code/4.py", line 4, in &lt;module&gt;
    print _support_.docstring("p.root_field", globals())
  File "/home/boothby/sage/local/lib/python2.5/site-packages/sage/server/support.py", line 131, in docstring
    s += 'Definition:  %s\n'%sageinspect.sage_getdef(obj, obj_name)
  File "/home/boothby/sage/local/lib/python2.5/site-packages/sage/misc/sageinspect.py", line 264, in sage_getdef
    spec = sage_getargspec(obj)
  File "/home/boothby/sage/local/lib/python2.5/site-packages/sage/misc/sageinspect.py", line 246, in sage_getargspec
    return _sage_getargspec_sagex(source)
  File "/home/boothby/sage/local/lib/python2.5/site-packages/sage/misc/sageinspect.py", line 200, in _sage_getargspec_sagex
    raise ValueError, "Could not parse sagex argspec"
ValueError: Could not parse sagex argspec

This is using a freshly upgraded SAGE. Cannot reproduce on the public notebook.

Component: notebook

Keywords: introspection

Issue created by migration from https://trac.sagemath.org/ticket/354

@boothby
Copy link
Author

boothby commented Apr 22, 2007

comment:1

Introspection works fine from the commandline.

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Jun 27, 2007

comment:2

Given the flux of the new notebook, and the fact that this works well for me, I'm going to close this. If it can be duplicated with newer code, I'll address the issue.

@ncalexan ncalexan mannequin assigned ncalexan and unassigned boothby Jun 27, 2007
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 29, 2007

comment:3

Works for me:

[mabshoff@m940 sage-2.8.3.alpha2]$ ./sage
----------------------------------------------------------------------
| SAGE Version 2.8.3.alpha2, Release Date: 2007-08-29                |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: F = ZZ.quo(2*ZZ)
sage: R.<x> = F['x']
sage: p = x^2-1
sage: p.root_field?
sage:
sage:   

Retagged for 2.9.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-2.9 milestone Aug 29, 2007
@williamstein williamstein modified the milestones: sage-2.9, sage-2.8.4 Aug 31, 2007
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 31, 2007

comment:5

The problem is in the notebook, not the console application. So this is not resolved and should be fixed.

Cheers,

Michael

tobiasdiez pushed a commit to tobiasdiez/sage that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants