[sage-support] Re: Using Python new style string formatting in Sage

2012-03-25 Thread Dima Pasechnik
On 2012-03-25, Zoresvit zores...@gmail.com wrote: --=_Part_2975_1350727.1332636811930 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks a lot! Always forgetting Sage has its own type for integers. Some=20 automatic coersion would help a lot in

[sage-support] Re: semidefinite programming using csdp -- python import errors

2012-03-25 Thread Dima Pasechnik
On 2012-03-24, Dima Pasechnik dimp...@gmail.com wrote: On 2012-03-23, Dima Pasechnik dimp...@gmail.com wrote: [...] I have had success with installing and running this extenstion on MacOSX 10.6.8, under Sage 4.8. (That is, I didn't even use Atlas - Sage uses native MacOSX lapack/blas)

Re: [sage-support] Does the email function need to be configured?

2012-03-25 Thread Dima Pasechnik
Likely, these emails were either blocked by your ISP, or landed in your spam mail folder... On Sunday, 25 March 2012 12:20:38 UTC+8, JStarx wrote: The documentation for the email function seems to indicate that it should work out of the box so to speak. I tried sending myself an email

[sage-support] Exporting data from sage notebook

2012-03-25 Thread Vincent Knight
Hi all, I've had trouble with this for a while. If I write the following in to a notebook cell: -- import csv output=csv.writer(open('test.csv','wb')) data=[[1,2],[3,4],[5,6]] for r in data: output.writerow(r) - and evaluate, a hyperlink appears entitled 'test.csv', if I open

[sage-support] Re: Exporting data from sage notebook

2012-03-25 Thread Dima Pasechnik
On Sunday, 25 March 2012 18:21:23 UTC+8, Vincent Knight wrote: Hi all, I've had trouble with this for a while. If I write the following in to a notebook cell: -- import csv output=csv.writer(open('test.​csv','wb')) data=[[1,2],[3,4],[5,6]] for r in data:

Re: [sage-support] Re: Exporting data from sage notebook

2012-03-25 Thread Vincent Knight
Thanks for the answer Dima, I tried this: - import csv o=open('test.csv','wb') output=csv.writer(o) data=[[1,2],[3,4],[5,6]] for r in data: output.writerow(r) o.close() I'm afraid that that doesn't work either (still output an empty csv file). Note that I have never had to use

Re: [sage-support] Re: Exporting data from sage notebook

2012-03-25 Thread Dima Pasechnik
OK, thanks for letting su know. It looks like a genuine bug, indeed. The issue is now reported to sagenb folks as https://github.com/sagemath/sagenb/issues/48 On Sunday, 25 March 2012 20:05:43 UTC+8, Vincent Knight wrote: Thanks for the answer Dima, I tried this: - import csv

Re: [sage-support] Does the email function need to be configured?

2012-03-25 Thread Starx
Spam filter it is. I feel silly for not checking that. Thanx -Jim On Sun, Mar 25, 2012 at 2:34 AM, Dima Pasechnik dimp...@gmail.com wrote: Likely, these emails were either blocked by your ISP, or landed in your spam mail folder... On Sunday, 25 March 2012 12:20:38 UTC+8, JStarx wrote:

Re: [sage-support] Re: semidefinite programming using csdp -- python import errors

2012-03-25 Thread Emil
I've also been using CSDP from Sage lately. I am calling the stand-alone program, rather than using the Python interface (which isn't a very good solution). I was wondering whether using pycsdp is the right way to go though. Wouldn't it be best to write a small Cython wrapper for the C library?

Re: [sage-notebook] Re: [sage-support] Re: Exporting data from sage notebook

2012-03-25 Thread D. S. McNeil
I think you should close that.  The following works fine in the notebook.   It makes no sense to close the file -- instead, you have to delete the csv writer object, which flushes it to the file. This isn't guaranteed to flush it to the file, though, because del only deletes the name. That it

[sage-support] how to construct a splitting field of a polynomial

2012-03-25 Thread Ben
I'm trying to work with some roots of a rational polynomial, but I can't seem to get it to work. One example is z^3 + 1/3 I seem to be able to get the splitting field from: R.z=PolynomialRing(QQ) K.a=NumberField([z^3 + 1/3]) R.z=PolynomialRing(K) print (z^3 + 1/3).factor()

Re: [sage-notebook] Re: [sage-support] Re: Exporting data from sage notebook

2012-03-25 Thread Dima Pasechnik
On Monday, 26 March 2012 05:12:12 UTC+8, William Stein wrote: On Sun, Mar 25, 2012 at 9:06 AM, Dima Pasechnik dimp...@gmail.com wrote: OK, thanks for letting su know. It looks like a genuine bug, indeed. The issue is now reported to sagenb folks as