#7897: Macaulay2 interface update/improvement for version 1.3.1
--------------------------+-------------------------------------------------
Reporter: novoselt | Owner: was
Type: defect | Status: new
Priority: major | Milestone:
Component: interfaces | Keywords: Macaulay2, interface
Work_issues: | Author: Andrey Novoseltsev
Upstream: N/A | Reviewer:
Merged: |
--------------------------+-------------------------------------------------
These patches change the prompt detection/stripping and update doctests to
cause no errors with Macaulay2 1.3.1.
Improvements/fixes achieved:
- examples in Macaulay2 documentation (which include input prompts) do
not break the interaction with Sage;
- empty/whitespace/comment lines can be executed;
- multiline commands can be executed;
- stripping output prompts will not cut error messages if they occur
(e.g. the first call "help Thing" currently shows some errors in
Macaulay2).
This is done by:
- changing input and input continuation prompts;
- starting with a big line number to make all output labels of the same
width;
- making sure that only output labels and spaces are stripped from the
output.
Side effects / Remaining issues:
- "restart" command of Macaulay2 is handled separately when it is called
like "macaulay2.restart()" since we need to repeat prompt adjustments;
- this command cannot be used in the string code passed to Macaulay2,
since it will cause a lock. Since this should not cause loss of data (if
the user intentionally tried to restart Macaulay2), I think this is OK.
Correct checking of all the code for "restart" in it would involve also
checking if it is inside string constants.
These patches make tickets #7882 and #7888 unnecessary.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7897>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.