Module: sage.server.introspect
Sage Notebook: Introspection
TODO:
- add support for grabbing source code from pyrex functions (even if not
perfect is better than nothing).
- png or mathml output format for docstring
Module-level Functions
introspect( |
S, query, [format=html]) |
-
Return introspection from a given query string.
Input:
- S
- - a Sage0 object, i.e., an interface to a running instance
of Python with the SAGE libraries loaded
- query
- - a string: - if has no '?' then return completion list
- if begins or ends in one '?' return docstring
- if begins or ends in '??' return source code
- format
- - (string) 'html', 'png', 'none'
(only html is implemented right now!)
Release 2008.07.11, documentation updated on July 11, 2008.
See About this document... for information on suggesting changes.