[sage-devel] Re: bug in pexpect

2009-04-16 Thread mabshoff
On Apr 16, 11:43 pm, Ondrej Certik wrote: > On Thu, Apr 16, 2009 at 11:28 PM, mabshoff wrote: > > > Hi Ondrej, > > > Why would you say that this bug is introduced in the modified version > > of Sage ships? Just because it fixes the problem for you when you > > remove the patch that does not me

[sage-devel] Re: bug in pexpect

2009-04-16 Thread Ondrej Certik
On Thu, Apr 16, 2009 at 11:28 PM, mabshoff wrote: > > Hi Ondrej, > > Why would you say that this bug is introduced in the modified version > of Sage ships? Just because it fixes the problem for you when you > remove the patch that does not mean it is the cause (I am not day it > isn't without loo

[sage-devel] Re: bug in pexpect

2009-04-16 Thread mabshoff
Hi Ondrej, Why would you say that this bug is introduced in the modified version of Sage ships? Just because it fixes the problem for you when you remove the patch that does not mean it is the cause (I am not day it isn't without looking at the other changes you did for SPD). If you could argue w

[sage-devel] Re: error building html rest docs

2009-04-16 Thread John H Palmieri
On Apr 15, 4:50 am, mabshoff wrote: > On Apr 15, 4:23 am, John Cremona wrote: > > Hi  John, > > > Thanks Michael.  ulimit reports a max number of open files of 1024. > > The number of entries listed via "/ls -1 /proc/25679/fd/* | wc -l" > > where 25679 is the relevant pid grows rapidly until it

[sage-devel] Re: sage_fortran.bin: Internal error: Segmentation fault

2009-04-16 Thread mabshoff
On Apr 16, 9:34 pm, Rado wrote: Hi Rado, > Thanks Michael, that worked just fine. Since Ubuntu 8.10 is pretty > standard for linux-newbies, here are exactly the steps I did after the > crash (if someone googles the same error I got). > > >make clean > >export SAGE_FORTRAN=/usr/bin/gfortran >

[sage-devel] Re: Adding a trivial docstring confuses testing

2009-04-16 Thread John H Palmieri
On Apr 16, 10:00 pm, Rob Beezer wrote: > Hi John, > > Thanks for the fix!  That behavior was driving me crazy.  ;-)  I've > been away for a few days, so I'm sorry I didn't reply to your other > messages as you diagnosed this. > > I'll get back to this soon and I'll keep an eye out for any > expla

[sage-devel] Re: grading homework

2009-04-16 Thread Rob Beezer
Sorry. 1. blast, blare -- make a strident sound 2. blast, shell -- create by using explosives 3. blast-out -- email each student's graded worksheet back to them as part of a batch process for the whole class Rob On Apr 16, 10:25 pm, Nick Alexander wrote: > > 2.  A one-click process, or a simpl

[sage-devel] Re: bug in pexpect

2009-04-16 Thread Ondrej Certik
On Thu, Apr 16, 2009 at 10:34 PM, Ondrej Certik wrote: >> and all starts working. I don't understand why and how I triggered it >> (e.g. how can this work in Sage?), but in any case, this is clearly a >> bug in pexpect. > so it seems someone was fixing a bug and introduced a new bug. The bug wa

[sage-devel] Re: bug in pexpect

2009-04-16 Thread Ondrej Certik
> and all starts working. I don't understand why and how I triggered it > (e.g. how can this work in Sage?), but in any case, this is clearly a > bug in pexpect. Ok, it turns out it's not a bug in pexpect, but in the patch in pexpect.spkg: $ cat patches/pexpect.py-isdir_bug_fix.diff --- pexpect.

[sage-devel] bug in pexpect

2009-04-16 Thread Ondrej Certik
Hi, there is a bug in pexpect. When I did couple changes in Sage, so that it works when the binary is renamed from "sage" to "spd", I got this traceback when running notebook(): $ ./spd - | Source Python Distribution, Ve

[sage-devel] Re: grading homework

2009-04-16 Thread Nick Alexander
> 2. A one-click process, or a simple form, which would then blast-out > all the graded worksheets would be a real timesaver. What does blast-out mean? Nick --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe fr

[sage-devel] Re: Adding a trivial docstring confuses testing

2009-04-16 Thread Rob Beezer
Hi John, Thanks for the fix! That behavior was driving me crazy. ;-) I've been away for a few days, so I'm sorry I didn't reply to your other messages as you diagnosed this. I'll get back to this soon and I'll keep an eye out for any explanations, in addition to looking at #5610. I've only w

[sage-devel] Re: grading homework

2009-04-16 Thread Rob Beezer
On Apr 13, 12:20 am, William Stein wrote: > It might also be nice to integrate this with email, I.e., after I > grade all the worksheets, I could have sage use its email command to > email out all the graded versions of the worksheets back to the > students   I'm looking for little ideas like

[sage-devel] Re: sage_fortran.bin: Internal error: Segmentation fault

2009-04-16 Thread Rado
Thanks Michael, that worked just fine. Since Ubuntu 8.10 is pretty standard for linux-newbies, here are exactly the steps I did after the crash (if someone googles the same error I got). >make clean >export SAGE_FORTRAN=/usr/bin/gfortran >export SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so.3.0.0 >mak

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread Nick Alexander
>> Actually one more question --- if I run the terminal, e.g. ipython, >> then you have your own hook in ipython (executed after each command) >> which checks which files were generated (in ~/.sage/temp) and does >> the right thing (e.g. calling jmol or some viewer for the image?). >> The >> co

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread William Stein
On Thu, Apr 16, 2009 at 7:51 PM, Ondrej Certik wrote: > > On Thu, Apr 16, 2009 at 6:27 PM, Robert Bradshaw > wrote: >> >> On Apr 16, 2009, at 6:14 PM, J Elaych wrote: >> >>> >>> For 3d plots it's really very similar, but of course they aren't >>> always png's.  Calling show with viewer="tachyon"

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread mabshoff
On Apr 16, 7:51 pm, Ondrej Certik wrote: > Just curious, what is OP? Original poster. > Actually one more question --- if I run the terminal, e.g. ipython, > then you have your own hook in ipython (executed after each command) > which checks which files were generated (in ~/.sage/temp)  

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread Ondrej Certik
On Thu, Apr 16, 2009 at 6:27 PM, Robert Bradshaw wrote: > > On Apr 16, 2009, at 6:14 PM, J Elaych wrote: > >> >> For 3d plots it's really very similar, but of course they aren't >> always png's.  Calling show with viewer="tachyon" just renders a png, >> and we're in the above case.  Calling show

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread J Elaych
On Apr 16, 6:27 pm, Robert Bradshaw wrote: > On Apr 16, 2009, at 6:14 PM, J Elaych wrote: > > > > > > > For 3d plots it's really very similar, but of course they aren't > > always png's.  Calling show with viewer="tachyon" just renders a png, > > and we're in the above case.  Calling show with

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread Robert Bradshaw
On Apr 16, 2009, at 6:14 PM, J Elaych wrote: > > For 3d plots it's really very similar, but of course they aren't > always png's. Calling show with viewer="tachyon" just renders a png, > and we're in the above case. Calling show with no options (no > viewer="tachyon") uses jmol, which means tha

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread J Elaych
For 3d plots it's really very similar, but of course they aren't always png's. Calling show with viewer="tachyon" just renders a png, and we're in the above case. Calling show with no options (no viewer="tachyon") uses jmol, which means that a certain file type is output. The notebook then noti

[sage-devel] Re: evaluating integrals

2009-04-16 Thread William Stein
2009/4/16 Jason Grout : > > Ondrej Certik wrote: >> Hi, >> >> I would expect this to work: >> >> sage: e = integrate(sqrt(x**3+1), x, 2, 10) >> sage: e.n() >> --- >> TypeError                                 Traceback (most re

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread Robert Bradshaw
On Apr 16, 2009, at 3:50 PM, William Stein wrote: > 2009/4/16 Ondrej Certik : >> >> Hi, >> >> the notebook (sagelite) can work with Graphics primitives in Sage, >> that's very nice. >> >> I would like to make sympy (and other packages) to be able to easily >> work with the plotting. One way to do

[sage-devel] Re: plotting in the notebook

2009-04-16 Thread William Stein
2009/4/16 Ondrej Certik : > > Hi, > > the notebook (sagelite) can work with Graphics primitives in Sage, > that's very nice. > > I would like to make sympy (and other packages) to be able to easily > work with the plotting. One way to do plotting is to use matplotlib > (or anything else) and drop

[sage-devel] Re: programming: define a new function

2009-04-16 Thread Maurizio
> For people interested in helping out, a few words about integration is > in order. As we discussed on this list before, many problems in > integration can be handled with heuristics before calling more advanced > algorithms. The heuristics also give more user friendly answers in most > cases. >

[sage-devel] Re: partial success: notebook latex, adding \usepackage, using tikz

2009-04-16 Thread John H Palmieri
On Apr 16, 2:31 pm, mabshoff wrote: > On Apr 16, 1:41 pm, gerhard wrote: > > Hi, > > > This started out in grading notebooks, but does not really belong > > there. > > - > > I am happy to report the functionality to modify > > the latex header for notebook output is already present in sage:

[sage-devel] Re: sage0 tests hangs?

2009-04-16 Thread mabshoff
On Apr 16, 9:30 am, "Nicolas M. Thiery" wrote: > On Wed, Apr 15, 2009 at 11:56:37PM -0700, mabshoff wrote: > > > Anyone getting the same behaviour? > > > I have seen it fail on occasion, but not reproducibly. Does that fail > > for you every time in the same spot? > > Over a dozen run, it se

[sage-devel] Re: partial success: notebook latex, adding \usepackage, using tikz

2009-04-16 Thread mabshoff
On Apr 16, 1:41 pm, gerhard wrote: Hi, > This started out in grading notebooks, but does not really belong > there. > - > I am happy to report the functionality to modify > the latex header for notebook output is already present in sage: > >     sage:  import sage.misc.latex as l > >    

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread mabshoff
On Apr 16, 2:18 pm, Jaap Spies wrote: > mabshoff wrote: Hi Jaap, > > Not sure what is happening here. In case it is reproducible for you > > please open another ticket. > > Not sure what you mean, but this happens all the time repeating > this test. That meant please open a ticket if it is

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread Jaap Spies
mabshoff wrote: > > > On Apr 16, 1:02 pm, Jaap Spies wrote: >> mabshoff wrote: >>> Hi, > Hi Michael, > > Please open a ticket for this one. It is numerical noise and trivial > to fix. > Done. >> sage -t "devel/sage/sage/misc/sagedoc.py" >> **

[sage-devel] plotting in the notebook

2009-04-16 Thread Ondrej Certik
Hi, the notebook (sagelite) can work with Graphics primitives in Sage, that's very nice. I would like to make sympy (and other packages) to be able to easily work with the plotting. One way to do plotting is to use matplotlib (or anything else) and drop a .png file, the notebook will show it. B

[sage-devel] Re: partial success: notebook latex, adding \usepackage, using tikz

2009-04-16 Thread John H Palmieri
On Apr 16, 1:41 pm, gerhard wrote: > This started out in grading notebooks, but does not really belong > there. > - > I am happy to report the functionality to modify > the latex header for notebook output is already present in sage: > >     sage:  import sage.misc.latex as l > >     sage:  l

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread mabshoff
On Apr 16, 9:24 am, kcrisman wrote: > > #5659: Wilfried Huss: Use CRT to speed up solve_mod [Reviewed by > > Wilfried Huss] > > Actually reviewed by William Stein, of course - just in case anyone > thought we now have self-review :) Oops, thanks for pointing that out. Fixed. > - kcrisman Che

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread davidloeffler
On Apr 16, 9:02 pm, Jaap Spies wrote: > On Fedora 9, 32 bit, after an upgrade: > > The following tests failed: > > sage -t "devel/sage/sage/modular/dirichlet.py" > sage -t "devel/sage/sage/misc/sagedoc.py" On 32bit SuSE Linux, upgrading from 3.4.1.rc2, I also get the dirichlet

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread mabshoff
On Apr 16, 1:02 pm, Jaap Spies wrote: > mabshoff wrote: > > Hi, Hi Jaap, > > this is rc3 and it is much larger than I anticipated. Loads of > > doctests merged, i.e. we are at > > On Fedora 9, 32 bit, after an upgrade: > > The following tests failed: > >         sage -t  "devel/sage/sage/modu

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread mabshoff
On Apr 16, 12:21 pm, Marshall Hampton wrote: > I am getting errors building linbox on an Intel mac, 10.4.11.  I get > several errors of the form: > > /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit > command failed These are known problems, i.e. from above: *Note that so

[sage-devel] Re: ReST/sphinx queries

2009-04-16 Thread John Cremona
2009/4/16 John H Palmieri : > > > > On Apr 16, 9:44 am, John Cremona wrote: >> Now I am getting the hang of this ReST/Sphinx stuff (this is very >> useful:  http://docutils.sourceforge.net/docs/user/rst/quickref.htm) >> I have some questions: >> >> * Sometimes stuff in between `...` does not get

[sage-devel] partial success: notebook latex, adding \usepackage, using tikz

2009-04-16 Thread gerhard
This started out in grading notebooks, but does not really belong there. - I am happy to report the functionality to modify the latex header for notebook output is already present in sage: sage: import sage.misc.latex as l sage: l.LATEX_HEADER+='\\def \\pgfsysdriver {pgfsys-dvips.d

[sage-devel] Re: ReST/sphinx queries

2009-04-16 Thread John H Palmieri
On Apr 16, 9:44 am, John Cremona wrote: > Now I am getting the hang of this ReST/Sphinx stuff (this is very > useful:  http://docutils.sourceforge.net/docs/user/rst/quickref.htm) > I have some questions: > > * Sometimes stuff in between `...` does not get put into math mode. > > * When it does,

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread Jaap Spies
mabshoff wrote: > Hi, > > this is rc3 and it is much larger than I anticipated. Loads of > doctests merged, i.e. we are at > On Fedora 9, 32 bit, after an upgrade: The following tests failed: sage -t "devel/sage/sage/modular/dirichlet.py" sage -t "devel/sage/sage/misc/saged

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread Marshall Hampton
I am getting errors building linbox on an Intel mac, 10.4.11. I get several errors of the form: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed This is while attempting to build 3.4.1.rc3 from the tar file (i.e. not an upgrade). -Marshall On Apr 16, 10:10

[sage-devel] Re: sage0 tests hangs?

2009-04-16 Thread Robert Bradshaw
On Apr 16, 2009, at 9:30 AM, Nicolas M. Thiery wrote: > > On Wed, Apr 15, 2009 at 11:56:37PM -0700, mabshoff wrote: >> >> >> >> On Apr 15, 11:54 pm, "Nicolas M. Thiery" >> wrote: >>> Hello! >>> >>> With my sage 3.4, which unless I screwed up is a plain sage 3.4, >>> >>> sage -t -

[sage-devel] Re: evaluating integrals

2009-04-16 Thread Jason Grout
Ondrej Certik wrote: > Hi, > > I would expect this to work: > > sage: e = integrate(sqrt(x**3+1), x, 2, 10) > sage: e.n() > --- > TypeError Traceback (most recent call last) > > /home/ondrej/

[sage-devel] evaluating integrals

2009-04-16 Thread Ondrej Certik
Hi, I would expect this to work: sage: e = integrate(sqrt(x**3+1), x, 2, 10) sage: e.n() --- TypeError Traceback (most recent call last) /home/ondrej/ in () /home/ondrej/ext/sage-3.4.1.alpha

[sage-devel] ReST/sphinx queries

2009-04-16 Thread John Cremona
Now I am getting the hang of this ReST/Sphinx stuff (this is very useful: http://docutils.sourceforge.net/docs/user/rst/quickref.htm) I have some questions: * Sometimes stuff in between `...` does not get put into math mode. * When it does, not everything gets rendered properly (e.g. Greek lett

[sage-devel] Re: Sage 3.4.1.rc3 released

2009-04-16 Thread kcrisman
> #5659: Wilfried Huss: Use CRT to speed up solve_mod [Reviewed by > Wilfried Huss] Actually reviewed by William Stein, of course - just in case anyone thought we now have self-review :) - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-d

[sage-devel] Re: sage0 tests hangs?

2009-04-16 Thread Nicolas M. Thiery
On Wed, Apr 15, 2009 at 11:56:37PM -0700, mabshoff wrote: > > > > On Apr 15, 11:54 pm, "Nicolas M. Thiery" > wrote: > >         Hello! > > > > With my sage 3.4, which unless I screwed up is a plain sage 3.4, > > > >         sage -t -verbose  sage/interfaces/sage0.py > > > > hangs forever at: >

[sage-devel] Sage 3.4.1.rc3 released

2009-04-16 Thread mabshoff
Hi, this is rc3 and it is much larger than I anticipated. Loads of doctests merged, i.e. we are at Overall weighted coverage score: 68.2% Total number of functions: 22946 We need 403 more function to get to 70% coverage. We need 1550 more function to get to 75% coverage. We need 2698 more fun

[sage-devel] modified rich comparison proposal

2009-04-16 Thread Martin Raum
I have already asked about some strange behavior of rich camparison in "rich comparision for elements". In the meantime I've written a little patch. Michael asked me to first discuss it here, so here it is: http://www.matha.rwth-aachen.de/~martin/element.pyx.patch . Motivation: The old behavior wa

[sage-devel] Re: bug in rational_diagonal_form() from QuadraticForm class?

2009-04-16 Thread mabshoff
On Apr 15, 6:26 pm, LBerlioz wrote: Hi Luiz, > When I do: > sage: A=matrix(QQ,3,3,[-3,2,0 , 2,3,-2 , 0,-2,5 ]) > sage: Q=QuadraticForm(2*A) > sage: Q > Quadratic form in 3 variables over Rational Field with coefficients: > [ -3 4 0 ] > [ * 3 -4 ] > [ * * 5 ] > > If I try to get the diagonal f