Module: sage.server.support
Support for the Notebook (introspection and setup)
Author: William Stein (much of this code is from IPython).
Module-level Functions
s, globs, [format=False], [width=90], [system=None]) |
Return a list of completions in the context of globs.
filename, [verbose=False], [compile_message=False], [use_cache=False], [create_local_c_file=True]) |
Input:
Raises an ImportError exception if anything goes wrong.
filename, globals, [verbose=False], [compile_message=False], [use_cache=False], [create_local_c_file=True]) |
Input:
Raises an ImportError exception if anything goes wrong.
obj_name, globs, [system=sage]) |
Format obj_name's docstring for printing in Sage notebook.
Author Log:
s) |
obj) |
Display help on s.
NOTE: This a wrapper around the builtin help. If formats the output as HTML without word wrap, which looks better in the notebook.
Input:
TESTS:
sage: import numpy.linalg sage: sage.server.support.help(numpy.linalg.norm) <html><table notracebacks bgcolor="#386074" cellpadding=10 cellspacing=10><tr><td bgcolor="#f5f5f5"><font color="#37546d"> \ \ \ <a target='_new' href='cell://docs-....html'>Click to open help window</a>\ \ \ <br></font></tr></td></table></html>
[object_directory=None], [globs=]) |
Initialize Sage for use with the web notebook interface.
v, filename, state) |
filename) |
globs) |
s, globs, [system=sage]) |
Format obj's source code for printing in Sage notebook.
Author Log:
system, cmd, [dir=None]) |
v, [width=90], [ncols=3]) |
[with_types=True]) |