Hi!

I try to understand the problem tracked at #11913: If a doc test of an
object tests against an error, then both the doc string and the source
code are truncated when attempting ?/?? inspection in the notebook.

For example, do
 sage.graphs.graph_coloring.all_graph_colorings?
or
 sage.graphs.graph_coloring.all_graph_colorings??
in the notebook.

The same problem does not occur in the command line version of sage.

If I am not mistaken, one could try to use the features of the
function format_exception at devel/sagenb/sagenb/notebook/cell.py for
fixing the problem

However, looking at the code, I wonder: There is devel/sage/sage/misc/
sageinspect.py, and there also is devel/sagenb/sagenb/misc/
sageinspect.py. The two files are *different*, in fact the file in
sagenb does not contain some patches that are important for source
inspection. It seems like the file in devel/sagenb is an old snapshot
of the file in devel/sage.

Why is that? I mean, I can understand that the old stuff in devel/sage/
sage/server/notebook is not actively maintained. But why is the
notebook not simply using the stuff from devel/sage whenever possible?

Is it perhaps the case that "do not reinvent the wheel" only holds for
sage, but not for sagenb??

Cheers,
Simon

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to