#5644: [with patch, needs work] make it so escape make the introspection window
in
the notebook disappear
----------------------+-----------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.1
Component: notebook | Keywords:
----------------------+-----------------------------------------------------
Comment(by mpatel):
A first take at "unification:" Replace the end of `js.py`'s
`set_output_text()` with something like
{{{
if(introspect_id == id) {
if (status == 'd') {
introspection_loaded = true;
introspection_text = introspect_html;
}
update_introspection_text();
} else if(introspect_html != '') {
introspect_id = id;
introspection_loaded = true;
introspection_text = introspect_html;
update_introspection_text();
/*
cell_output.innerHTML = '';
cell_output_nowrap.innerHTML = '';
cell_output_html.innerHTML = introspect_html;
if (contains_jsmath(introspect_html)) {
try {
jsMath.ProcessBeforeShowing(cell_output_html);
} catch(e) {
cell_output.innerHTML = jsmath_font_msg +
cell_output_html.innerHTML;
}
}
*/
} else {
introspect_id = id;
introspection_loaded = true;
introspection_text = '';
update_introspection_text();
}
}}}
Probably, it's ''far'' better to eliminate all global variables, starting
with those related to introspection. This would
* Make it easier to understand, maintain, and modify the code.
* Permit independent (i.e., non-interfering) introspection windows for
different cells.
* Help with ticket #6001.
To be continued...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5644#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---