You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<wstein>
The new ?? help looks quite nice. It would
be good for gp.foo? to use it.
The idea is that
sage: foo = gp(x)
sage: foo.polroots?
should use the help text from the gp command ??polroots.
The obvious approach is to change '?%s' to '??%s' in gp.py's help() method. This doesn't quite work, for two reasons:
gphelp carefully formats the text to fit in the current line width, and then Sage displays this text indented; so almost every line wraps.
gphelp uses control characters to make words bold, underlined, etc.; when the help is viewed from the notebook, these control codes are visible in the output, and look very ugly.
The idea is that
should use the help text from the gp command
??polroots
.The obvious approach is to change '?%s' to '??%s' in gp.py's help() method. This doesn't quite work, for two reasons:
gphelp carefully formats the text to fit in the current line width, and then Sage displays this text indented; so almost every line wraps.
gphelp uses control characters to make words bold, underlined, etc.; when the help is viewed from the notebook, these control codes are visible in the output, and look very ugly.
CC: @videlec @jdemeyer @slel
Component: interfaces
Keywords: pari/gp, help
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/1062
The text was updated successfully, but these errors were encountered: