Hello everybody,

Very often when I use the notebook, executing a command produces a lot
of output that has nothing to do with the result of the computation:

 - When running a command for the first time a lot of "import"
statements are printed (see below).
 - When displaying the result of a computation which has a lot of
output by itself, a lot of "execfile" statements are printed and the
output is restarted, sometimes several times (see example output
below).
 - When executing commands that contain plots, a few lines of output
are produced, like the following, just before the plot (the two
character in the last line don't display well in the notebook either):

execfile("/home/nikos/.sage/sage_notebook/worksheets/admin/3/code/
2.py")
print "\x01r\x01e266"
>>> print "\x01r\x01e265"
 r e265

The strange thing is that this behavior is somewhat random: often
executing the plot command again gives the plot without additional
output, some other times it's the third run that produces the plot
without extra output. The plots are fine in all cases.

My feeling is that only displaying the output in notebook is
corrupted, e.g. executing:

A = Subsets(range(10)).list(); A

produces a lot of bad output as described above, but subsequently
executing A[270] gives {1,2,4,9} as (somewhat :) ) expected, so the
value of A seems fine.

Also, printing all that output takes a lot of time (even with few
restarts)! Subsets(range(12)).list() in the notebook takes many
seconds, maybe even minutes! The same command in the command line
interface prints nicely and takes less than 2 seconds.

Thank you very much for reading this and for any help!
Nikos

My system:
IBM Thinkpad X60 running Ubuntu 9.04,
Kernel Linux 2.6.28-11-generic
Python 2.6.2
SAGE Version 3.0.5, Release Date: 2008-07-11 installed with apt-get
from the repositories (I know it's an old version, but if my problem
is unrelated to that, I would like to avoid building from source etc.)

Here is the example of running Subsets(range(12)).list() in the
notebook:
-----------------------------------------------------

WARNING: Output truncated!


 from sage.all import *
>>> import cPickle
>>>
>>>
>>> from sage.all_notebook import *;import sage.server.support as
_support_;
>>> __DIR__="/home/nikos/.sage/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_n<age/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_no
ebook/worksheets/admin/4</home/nikos/.sage/sage_notebook/worksheets/a\
dmin/4/                         ata/";
_support_.init(No<ebook/worksheets/admin/4/data/"; _support_.init(Non
, globals());
>>>
execfile("/home/nikos/.sage/sage_notebook/worksheets/admin/4/code/
1.py")
15
[{}, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {0,
1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}, {0, 8}, {0, 9},
{0,
10}, {0, 11}, {1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 7}, {8, 1},
{1, 9}, {1, 10}, {1, 11}, {2, 3}, {2, 4}, {2, 5}, {2, 6}, {2, 7}, {8,
2}, {9, 2}, {2, 10}, {2, 11}, {3, 4}, {3, 5}, {3, 6}, {3, 7}, {8, 3},
{9, 3}, {10, 3}, {3, 11}, {4, 5}, {4, 6}, {4, 7}, {8, 4}, {9, 4}, {10,
4}, {11, 4}, {5, 6}, {5, 7}, {8, 5}, {9, 5}, {10, 5}, {11, 5}, {6, 7},
{8, 6}, {9, 6}, {10, 6}, {11, 6}, {8, 7}, {9, 7}, {10, 7}, {11, 7},
{8,
9}, {8, 10}, {8, 11}, {9, 10}, {9, 11}, {10, 11}, {0, 1, 2}, {0, 1,
3},
{0, 1, 4}, {0,  from sage.all import *
>>> import cPickle
>>>
>>>
>>> from sage.all_notebook import *;import sage.server.support as
_support_;
>>> __DIR__="/home/nikos/.sage/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_n<age/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_no
ebook/worksheets/admin/4</home/nikos/.sage/sage_notebook/worksheets/a\
dmin/4/                         ata/";
_support_.init(No<ebook/worksheets/admin/4/data/"; _support_.init(Non
, globals());
>>>
execfile("/home/nikos/.sage/sage_notebook/worksheets/admin/4/code/
1.py")
15
[{}, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {0,
1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}, {0, 8}, {0, 9},
{0,
10}, {0, 11}, {1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 7}, {8, 1},
{1, 9}, {1, 10}, {1, 11}, {2, 3}, {2, 4}, {2, 5}, {2, 6}, {2, 7}, {8,
2}, {9, 2}, {2, 10}, {2, 11}, {3, 4}, {3, 5}, {3, 6}, {3, 7}, {8, 3},
{9, 3}, {10, 3}, {3, 11}, {4, 5}, {4, 6}, {4, 7}, {8, 4}, {9, 4}, {10,
4}, {11, 4}, {5, 6}, {5, 7}, {8, 5}, {9, 5}, {10, 5}, {11, 5}, {6, 7},
{8, 6}, {9, 6}, {10, 6}, {11, 6}, {8, 7}, {9, 7}, {10, 7}, {11, 7},
{8,
9}, {8, 10}, {8, 11}, {9, 10}, {9, 11}, {10, 11}, {0, 1, 2}, {0, 1,
3},
{0, 1, 4}, {0, 1, 5}, {0, 1, 6}, {0, 1, 7}, {0, 1, 8}, {0, 1, 9}, {0,
1,
10}, {0, 1, 11}, {0, 2, 3}, {0, 2, 4}, {0, 2, 5}, {0, 2, 6}, {0, 2,
7},
{0, 8, 2}, {0, 9, 2}, {0, 2, 10}, {0, 2, 11}, {0, 3, 4}, {0, 3, 5},
{0,
3, 6}, {0, 3, 7}, {0, 8, 3}, {0, 9, 3}, {0, 10, 3}, {0, 3, 11}, {0, 4,
5}, {0, 4, 6}, {0, 4, 7}, {0, 8, 4}, {0, 9, 4}, {0, 10, 4}, {0, 11,
4},
{0, 5, 6}, {0, 5, 7}, {0, 8, 5}, {0, 9, 5}, {0, 10, 5}, {0, 11, 5},
{0,
6, 7}, {0, 8, 6}, {0, 9, 6}, {0, 10, 6}, {0, 11, 6}, {0, 8, 7}, {0, 9,
7}, {0, 10, 7}, {0, 11, 7}, {0, 8, 9}, {0, 8, 10}, {0, 8, 11}, {0, 9,
10}, {0, 9, 11}, {0, 10, 11}, {1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 2,
6}, {1, 2, 7}, {8,  from sage.all import *
>>> import cPickle
>>>
>>>
>>> from sage.all_notebook import *;import sage.server.support as
_support_;
>>> __DIR__="/home/nikos/.sage/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_n<age/"; DIR=__DIR__;
DATA="/home/nikos/.sage/sage_no
ebook/worksheets/admin/4</home/nikos/.sage/sage_notebook/worksheets/a\
dmin/4/                         ata/";
_support_.init(No<ebook/worksheets/admin/4/data/"; _support_.init(Non
, globals());
>>>
execfile("/home/nikos/.sage/sage_notebook/worksheets/admin/4/code/
1.py")
15
[{}, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {0,
1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}, {0, 8}, {0, 9},
{0,
10}, {0, 11}, {1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 7}, {8, 1},
{1, 9}, {1, 10}, {1, 11}, {2, 3}, {2, 4}, {2, 5}, {2, 6}, {2, 7}, {8,
----------------------
... and this goes on and on...
----------------------

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to