Ticket #2163 (closed defect: fixed)
[with patch, positive review] .show?? pops up the graphics item as well as the help page
| Reported by: | jason | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.2.2 |
| Component: | graphics | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
At the command line:
sage: a=plot(x^2,(x,-1,1)) sage: a.show?? sage: a.show?
In either of the last two commands, the plot pops up on my Ubuntu 7.10 box (as well as the help).
Attachments
Change History
comment:3 Changed 5 years ago by mhansen
- Owner changed from was to mhansen
- Status changed from new to assigned
This is due to the following:
String Form: <bound method Graphics.show of >
whereas after show_default(False), we get:
String Form: <bound method Graphics.show of Graphics object consisting of 1 graphics primitive>
comment:4 Changed 5 years ago by mhansen
This can be fixed if we can tell IPython to set show_default(False) when doing things like repr(a.show)
comment:5 Changed 5 years ago by mhansen
- Status changed from assigned to closed
- Resolution set to fixed
comment:6 Changed 5 years ago by mhansen
- Status changed from closed to reopened
- Resolution fixed deleted
comment:7 Changed 4 years ago by mhansen
- Summary changed from .show?? pops up the graphics item as well as the help page to [with patch, needs review] .show?? pops up the graphics item as well as the help page
I had already fixed some problems caused by removing the 'nodoctest' at the top before realizing there's no good way to test the function which I added.
The thing which addresses this ticket is the last hunk at the bottom of the patch.
comment:8 Changed 4 years ago by jason
- Summary changed from [with patch, needs review] .show?? pops up the graphics item as well as the help page to [with patch, positive review] .show?? pops up the graphics item as well as the help page
This fixes the problem. Tests pass in interpreter.py as well (thanks for fixing all those too!)
Positive review.

