| Home | Trees | Indices | Help |
|---|
|
|
nodoctest A Cell. A cell is a single input/output block. Worksheets are built out of a list of cells.
|
|||
| Cell_generic | |||
| TextCell | |||
| Cell | |||
| ComputeCell | |||
|
|||
|
|||
|
|||
|
|||
MAX_OUTPUT = 32000
|
|||
MAX_OUTPUT_LINES = 120
|
|||
TRACEBACK =
|
|||
re_cell = re.compile(r'"cell://.
|
|||
re_cell_2 = re.compile(r'\'cell://.
|
|||
|
|||
Make it so excpetions don't appear expanded by default.
INPUT:
s0 -- string
ncols -- integer
OUTPUT:
string
If s0 contains "notracebacks" then this function always returns s0
EXAMPLES:
sage: sage.server.notebook.cell.format_exception(sage.server.notebook.cell.TRACEBACK,80)
'
Traceback (click to the left for traceback)
...
Traceback (most recent call last):'
sage: sage.server.notebook.cell.format_exception(sage.server.notebook.cell.TRACEBACK + "notracebacks",80)
'Traceback (most recent call last):notracebacks'
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:29 2008 | http://epydoc.sourceforge.net |