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
When I fired up Sage having never used it before, the first thing I tried after '1+1' and 'f(x) = x + x' followed by 'f(2)' was 'help'. I was disappointed to see that it gave the Python help system. I know Python, and I suspect even most Sage users who don't are more likely to want Sage help than Python help when they start out.
sage: help
Type help() for interactive help, or help(object) for help about object.
sage: help()
Welcome to Python 2.5! This is the online help utility.
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".
help>
I wound up using 'locals()' to see what was around -- a Python trick -- then 'help' on individual values that looked interesting. I still don't know how to find introductory, overview help on Sage from the interactive prompt, or a list of functions without using tricks from a Python background. I'm sure there's documentation on the web, but it's nice to be able to get to it while at the prompt.
Of course the native Python 'help' function is invaluable for printing and paging through docstrings, once one knows the name of something. I'm referring to its behavior with no arguments -- it should begin to give a clue about syntax, what's available, and where to look on the web, for Sage rather than for Python.
sagetrac-mvngumannequin
changed the title
[PLEASE CLOSE] help() should give Sage help, not Python
help() should give Sage help, not Python
Jan 17, 2010
When I fired up Sage having never used it before, the first thing I tried after '1+1' and 'f(x) = x + x' followed by 'f(2)' was 'help'. I was disappointed to see that it gave the Python help system. I know Python, and I suspect even most Sage users who don't are more likely to want Sage help than Python help when they start out.
I wound up using 'locals()' to see what was around -- a Python trick -- then 'help' on individual values that looked interesting. I still don't know how to find introductory, overview help on Sage from the interactive prompt, or a list of functions without using tricks from a Python background. I'm sure there's documentation on the web, but it's nice to be able to get to it while at the prompt.
Of course the native Python 'help' function is invaluable for printing and paging through docstrings, once one knows the name of something. I'm referring to its behavior with no arguments -- it should begin to give a clue about syntax, what's available, and where to look on the web, for Sage rather than for Python.
Thanks!
CC: @jhpalmieri
Component: user interface
Work Issues: Close as fixed
Issue created by migration from https://trac.sagemath.org/ticket/3091
The text was updated successfully, but these errors were encountered: