On Fri, Oct 30, 2009 at 2:36 AM, zeliboba <zelibo...@googlemail.com> wrote:
>
> 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).
>

I don't know if it is helpful for you, but there is an iload command in sage.
If you put a bunch of code in a file foo.sage then do

  sage: iload foo.sage

you get a verbose load.

You can also use the trace command, which might be helpful, maybe.

Just some random thoughts.

--~--~---------~--~----~------------~-------~--~----~
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