[sage-support] Re: loading programs created by Cython into notebook

2008-04-26 Thread pong
There is a typo in my previous post. It should be /home/sage/.sage/filename.spyx I forgot the / before home. On Apr 26, 4:49 pm, pong <[EMAIL PROTECTED]> wrote: > After digging around a little bit more I found something that works. > > To load a python program into a worksheet, one can use > >

[sage-support] Re: converting sage code into python

2008-04-26 Thread pong
Hello Jason, it works! Thanks. May I follow up with a question. Eventually, I want to compile codes written in SAGE into faster executable codes. How should I do it? Do I need to translate it into Python first then run Cython on it? I tried moving example.py into example.spyx then run Cython, it

[sage-support] converting sage code into python

2008-04-26 Thread Jason Bandlow
Hello, pong wrote: > Sorry for asking such a basic question but I still have trouble with > it. > > I have created example.sage with the following content > > print "Hello World" > print 2^3 > > and load it into SAGE by load "example.sage". My understanding of the > tutorial is that SAGE will con

[sage-support] converting sage code into python

2008-04-26 Thread pong
Sorry for asking such a basic question but I still have trouble with it. I have created example.sage with the following content print "Hello World" print 2^3 and load it into SAGE by load "example.sage". My understanding of the tutorial is that SAGE will convert this into python and save it in

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread mabshoff
On Apr 25, 10:21 pm, ugus <[EMAIL PROTECTED]> wrote: > > Sound pretty much like it could be. Can you take vanilla python 2.5.2 > > on your box, build from source and then check if the gdbm extension > > compiles [I think it won't]. Can you then build gdbm from source and > > use that version to

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread mabshoff
On Apr 26, 5:54 pm, ugus <[EMAIL PROTECTED]> wrote: > Hi Michael, > > > I would suspect you need to do the following thing: > > a) cd into $SAGE_ROOT > > b) source local/bin/sage/env > > c) patch the python.spkg, then run ./spkg-install from its base > > directory > > d) cd into $SAGE_ROOT again

[sage-support] Re: ubuntu 8.04

2008-04-26 Thread mabshoff
On Apr 26, 10:50 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Sat, Apr 26, 2008 at 1:26 PM, teck <[EMAIL PROTECTED]> wrote: > > >  I have installed new ubuntu 8.04 hardy heron and downloaded sage but > >  when I run it, firefox only displays this warning: > > >  Secure Connection Failed >

[sage-support] Re: what are the optional packages?

2008-04-26 Thread mabshoff
On Apr 26, 11:47 pm, John H Palmieri <[EMAIL PROTECTED]> wrote: Hi John, > What are the optional packages? Right now if I type 'sage -optional', > I get a list like this: > > NOT INSTALLED: > biopython-1.44 > database_sloane_oeis-2005-12 > > (etc.) > > It would be very helpful if I got something

[sage-support] what are the optional packages?

2008-04-26 Thread John H Palmieri
What are the optional packages? Right now if I type 'sage -optional', I get a list like this: NOT INSTALLED: biopython-1.44 database_sloane_oeis-2005-12 (etc.) It would be very helpful if I got something like this instead: NOT INSTALLED: biopython-1.44 Python modu

[sage-support] Re: ubuntu 8.04

2008-04-26 Thread William Stein
On Sat, Apr 26, 2008 at 1:26 PM, teck <[EMAIL PROTECTED]> wrote: > > I have installed new ubuntu 8.04 hardy heron and downloaded sage but > when I run it, firefox only displays this warning: > > > Secure Connection Failed > > An error occurred during a connection to localhost:8000. > > Certif

[sage-support] ubuntu 8.04

2008-04-26 Thread teck
I have installed new ubuntu 8.04 hardy heron and downloaded sage but when I run it, firefox only displays this warning: Secure Connection Failed An error occurred during a connection to localhost:8000. Certificate key usage inadequate for attempted operation. (Error code: sec_error_inadequate

[sage-support] Re: sage -i question

2008-04-26 Thread William Stein
On Fri, Apr 25, 2008 at 6:18 PM, mabshoff <[EMAIL PROTECTED]> wrote: > > > > On Apr 26, 3:14 am, "David Joyner" <[EMAIL PROTECTED]> wrote: > > Hi: > > > > I'm wondering why is it that > > rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/" > > mkdir "$SAGE_ROOT/local/lib/$GAP/pkg/" > > occurs in the sp

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread ugus
Hi Michael, > I would suspect you need to do the following thing: > a) cd into $SAGE_ROOT > b) source local/bin/sage/env > c) patch the python.spkg, then run ./spkg-install from its base > directory > d) cd into $SAGE_ROOT again > e) ./sage -ba > f) start sage > Have you done those things listed

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread ugus
Hi Michael, > I would suspect you need to do the following thing: > a) cd into $SAGE_ROOT > b) source local/bin/sage/env > c) patch the python.spkg, then run ./spkg-install from its base > directory > d) cd into $SAGE_ROOT again > e) ./sage -ba > f) start sage > Have you done those things listed

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread ugus
Hi Michael, > I would suspect you need to do the following thing: > a) cd into $SAGE_ROOT > b) source local/bin/sage/env > c) patch the python.spkg, then run ./spkg-install from its base > directory > d) cd into $SAGE_ROOT again > e) ./sage -ba > f) start sage > Have you done those things liste

[sage-support] Re: Sage-3.0 run-time errors in Arch linux

2008-04-26 Thread ugus
Hi Michael, > I would suspect you need to do the following thing: > > a) cd into $SAGE_ROOT > b) source local/bin/sage/env > c) patch the python.spkg, then run ./spkg-install from its base > directory > d) cd into $SAGE_ROOT again > e) ./sage -ba > f) start sage > > Have you done those things lis

[sage-support] trouble in finding .sage.py file

2008-04-26 Thread pong
According to SAGE tutorial once the user loaded "example.sage" into SAGE, it will convert the codes into Python. And the converted version is then stored in the same directory (as the one containing example.sage) under the name example.sage.py. However, I cannot find the .sage.py file even after l

[sage-support] Re: loading programs created by Cython into notebook

2008-04-26 Thread pong
After digging around a little bit more I found something that works. To load a python program into a worksheet, one can use load "filename.py" assuming your code is stored in the file with name filename.py. Certainly you may need to specify the path where you save filename.py To compile and th