dear all

is it possible to have verbose output when execute sage script mode?
so one can see not only results of computation, but also input line,
similarly to default behavior of R or bash with -xf
option.unfortunately I did not find such an option for sage or python.
here is some examples (copy-paste from terminal):

$ cat tmp
a = 1
a + 1

## comment
a * 3

$ R --no-save --quiet < tmp
> a = 1
> a + 1
[1] 2
>
> ## comment
> a * 3
[1] 3
>
sage < tmp
----------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: sage: 2
sage: sage: sage: 3
sage: sage:
Exiting SAGE (CPU time 0m0.06s, Wall time 0m0.07s).

you can see that the first output is much more informative, whereas
for the second one you need to put a lot of "print" statements (but
even in this case it hides the details of algorithm and possible
errors in the implementation of the algorithm).

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to