* [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
@ 2010-03-13 21:59 François Bissey
2010-03-14 5:17 ` Steven Trogdon
0 siblings, 1 reply; 8+ messages in thread
From: François Bissey @ 2010-03-13 21:59 UTC (permalink / raw
To: gentoo-science
Hi,
We have a fix for the sage-notebook thanks to a pointer from
Steve. Steve pointed to pexpect and after careful examination
and a few wrong turns we found the patch that sage applied to
make the notebook work.
It is ridiculously small but it does the job. So you can sync the overlay,
make sure you package.keywords files are up to date and simply:
emerge -1uv pexpect
and voila working notebook.
Further tests welcome, since pexpect is used in quite a few things
we are looking to see if there could be side-effects.
Francois
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-13 21:59 [gentoo-science] [sage-on-gentoo] sage-notebook fix is in François Bissey
@ 2010-03-14 5:17 ` Steven Trogdon
2010-03-14 6:27 ` François Bissey
0 siblings, 1 reply; 8+ messages in thread
From: Steven Trogdon @ 2010-03-14 5:17 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
François,
The patches to pexpect do allow the notebook to function. However, with the
new patches to pexpect when I, from the notebook, do
g=sin(x); plot(g,(x,-pi,3*pi/2))
I get
import os;os.chdir("/tmp/tmpo2KomY");
execfile("_sage_input_1.py")Python 2.6.4 (r264:75706, Mar 4 2010,
21:15:13)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import os;os.chdir("/tmp/tmpo2KomY");
>>> execfile("_sage_input_1.py")
START1
import os;os.chdir("/tmp/tmpY61yjM");
execfile("_sage_input_2.py")
import os;os.chdir("/tmp/tmpXjmsQK");
execfile("_sage_input_3.py")
__SAGE__
__SAGE__import os;os.chdir("/tmp/tmpY61yjM");
__SAGE__execfile("_sage_input_2.py")
START2
__SAGE__
__SAGE__import os;os.chdir("/tmp/tmpXjmsQK");
The result should be the indicated graph in the notebook. So there still must
be some functional differences between the pexpect-2.4-r1 in sage-on-gentoo
and the pexpect-2.0_p4 provide by Sage.
Steve
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 5:17 ` Steven Trogdon
@ 2010-03-14 6:27 ` François Bissey
2010-03-14 7:46 ` Christopher Schwan
0 siblings, 1 reply; 8+ messages in thread
From: François Bissey @ 2010-03-14 6:27 UTC (permalink / raw
To: gentoo-science
> François,
>
> The patches to pexpect do allow the notebook to function. However, with the
> new patches to pexpect when I, from the notebook, do
>
> g=sin(x); plot(g,(x,-pi,3*pi/2))
>
> I get
>
> import os;os.chdir("/tmp/tmpo2KomY");
> execfile("_sage_input_1.py")Python 2.6.4 (r264:75706, Mar 4 2010,
> 21:15:13)
> [GCC 4.3.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import os;os.chdir("/tmp/tmpo2KomY");
> >>> execfile("_sage_input_1.py")
>
> START1
>
> import os;os.chdir("/tmp/tmpY61yjM");
> execfile("_sage_input_2.py")
>
> import os;os.chdir("/tmp/tmpXjmsQK");
> execfile("_sage_input_3.py")
> __SAGE__
> __SAGE__import os;os.chdir("/tmp/tmpY61yjM");
> __SAGE__execfile("_sage_input_2.py")
> START2
> __SAGE__
> __SAGE__import os;os.chdir("/tmp/tmpXjmsQK");
>
> The result should be the indicated graph in the notebook. So there still
> must be some functional differences between the pexpect-2.4-r1 in
> sage-on-gentoo and the pexpect-2.0_p4 provide by Sage.
Hi Steve,
Bummer. pexpect after 2.0 is a rewrite apparently. There is talk
about porting sage to a newer pexpect provided performance is
not abysmal. If it is broken, they may never want to upgrade.
Well I guess you just provided some material for discussion on sage-devel.
We may try a patched pexpect-2.0 for now, but that's a real pita.
Thanks for your testing Steve.
Francois
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 6:27 ` François Bissey
@ 2010-03-14 7:46 ` Christopher Schwan
2010-03-14 7:53 ` François Bissey
2010-03-14 7:57 ` Christopher Schwan
0 siblings, 2 replies; 8+ messages in thread
From: Christopher Schwan @ 2010-03-14 7:46 UTC (permalink / raw
To: gentoo-science
Hi,
I just uploaded pexpect-2.0 with fixes, but it does not seem to fix the
problems with graphics - there is apparently more broken than just pexpect.
Christopher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 7:46 ` Christopher Schwan
@ 2010-03-14 7:53 ` François Bissey
2010-03-14 8:01 ` François Bissey
2010-03-14 7:57 ` Christopher Schwan
1 sibling, 1 reply; 8+ messages in thread
From: François Bissey @ 2010-03-14 7:53 UTC (permalink / raw
To: gentoo-science
> Hi,
>
> I just uploaded pexpect-2.0 with fixes, but it does not seem to fix the
> problems with graphics - there is apparently more broken than just pexpect.
>
I was afraid it could be the case. I wonder if there is some "hardcoded" path
in the sage-notebook.
Steve, did you get the graphics going with your simple pexpect ebuild using
sage's sources?
Francois
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 7:46 ` Christopher Schwan
2010-03-14 7:53 ` François Bissey
@ 2010-03-14 7:57 ` Christopher Schwan
2010-03-14 11:17 ` Steven Trogdon
1 sibling, 1 reply; 8+ messages in thread
From: Christopher Schwan @ 2010-03-14 7:57 UTC (permalink / raw
To: gentoo-science
Hi,
fortunately I was wrong:
Am Sonntag 14 März 2010 08:46:53 schrieb Christopher Schwan:
> Hi,
>
> I just uploaded pexpect-2.0 with fixes, but it does not seem to fix the
> problems with graphics - there is apparently more broken than just pexpect.
>
> Christopher
I forgot to add EAPI=2 in pexpect-2.0, but now it should work (with graphics).
Christopher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 7:53 ` François Bissey
@ 2010-03-14 8:01 ` François Bissey
0 siblings, 0 replies; 8+ messages in thread
From: François Bissey @ 2010-03-14 8:01 UTC (permalink / raw
To: gentoo-science
> > Hi,
> >
> > I just uploaded pexpect-2.0 with fixes, but it does not seem to fix the
> > problems with graphics - there is apparently more broken than just
> > pexpect.
>
> I was afraid it could be the case. I wonder if there is some "hardcoded"
> path in the sage-notebook.
>
Wait a minute - I did my own try here just now and it works.
I notice you didn't put eutils in your pexpect-2 ebuild, have the
patches been applied?
Francois
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook fix is in
2010-03-14 7:57 ` Christopher Schwan
@ 2010-03-14 11:17 ` Steven Trogdon
0 siblings, 0 replies; 8+ messages in thread
From: Steven Trogdon @ 2010-03-14 11:17 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
On 03/14/10 01:57:01, Christopher Schwan wrote:
> Hi,
>
> fortunately I was wrong:
>
> Am Sonntag 14 März 2010 08:46:53 schrieb Christopher Schwan:
>> Hi,
>>
>> I just uploaded pexpect-2.0 with fixes, but it does not seem to fix the
>> problems with graphics - there is apparently more broken than just pexpect.
>>
>> Christopher
>
> I forgot to add EAPI=2 in pexpect-2.0, but now it should work (with
> graphics).
>
> Christopher
>
It works now here for me. Great job!
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-03-14 12:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13 21:59 [gentoo-science] [sage-on-gentoo] sage-notebook fix is in François Bissey
2010-03-14 5:17 ` Steven Trogdon
2010-03-14 6:27 ` François Bissey
2010-03-14 7:46 ` Christopher Schwan
2010-03-14 7:53 ` François Bissey
2010-03-14 8:01 ` François Bissey
2010-03-14 7:57 ` Christopher Schwan
2010-03-14 11:17 ` Steven Trogdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox