Gentoo Archives: gentoo-science

From: "François Bissey" <f.r.bissey@×××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
Date: Sun, 14 Mar 2010 06:28:33
Message-Id: 201003141927.59178.f.r.bissey@massey.ac.nz
In Reply to: Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in by Steven Trogdon
1 > François,
2 >
3 > The patches to pexpect do allow the notebook to function. However, with the
4 > new patches to pexpect when I, from the notebook, do
5 >
6 > g=sin(x); plot(g,(x,-pi,3*pi/2))
7 >
8 > I get
9 >
10 > import os;os.chdir("/tmp/tmpo2KomY");
11 > execfile("_sage_input_1.py")Python 2.6.4 (r264:75706, Mar 4 2010,
12 > 21:15:13)
13 > [GCC 4.3.4] on linux2
14 > Type "help", "copyright", "credits" or "license" for more information.
15 >
16 > >>> import os;os.chdir("/tmp/tmpo2KomY");
17 > >>> execfile("_sage_input_1.py")
18 >
19 > START1
20 >
21 > import os;os.chdir("/tmp/tmpY61yjM");
22 > execfile("_sage_input_2.py")
23 >
24 > import os;os.chdir("/tmp/tmpXjmsQK");
25 > execfile("_sage_input_3.py")
26 > __SAGE__
27 > __SAGE__import os;os.chdir("/tmp/tmpY61yjM");
28 > __SAGE__execfile("_sage_input_2.py")
29 > START2
30 > __SAGE__
31 > __SAGE__import os;os.chdir("/tmp/tmpXjmsQK");
32 >
33 > The result should be the indicated graph in the notebook. So there still
34 > must be some functional differences between the pexpect-2.4-r1 in
35 > sage-on-gentoo and the pexpect-2.0_p4 provide by Sage.
36 Hi Steve,
37
38 Bummer. pexpect after 2.0 is a rewrite apparently. There is talk
39 about porting sage to a newer pexpect provided performance is
40 not abysmal. If it is broken, they may never want to upgrade.
41 Well I guess you just provided some material for discussion on sage-devel.
42 We may try a patched pexpect-2.0 for now, but that's a real pita.
43
44 Thanks for your testing Steve.
45
46 Francois

Replies

Subject Author
Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in Christopher Schwan <cschwan@××××××××××××××××××.de>