Ticket #7897 (closed defect: fixed)
Macaulay2 interface update/improvement for version 1.3.1
| Reported by: | novoselt | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.2 |
| Component: | interfaces | Keywords: | Macaulay2, interface |
| Cc: | Author(s): | Andrey Novoseltsev | |
| Report Upstream: | N/A | Reviewer(s): | Mike Hansen |
| Merged in: | sage-4.5.2.alpha0 | Work issues: |
Description (last modified by novoselt) (diff)
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);
- "macaulay2.restart()" does not print a useless variable name.
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

