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 wrote: > > 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

[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.=PolynomialRing(QQ) K.=NumberField([z^3 + 1/3]) R.=PolynomialRing(K) print (z^3 + 1/3).factor() L.=NumberField([z^2 + a

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

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? (I

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

2012-03-25 Thread William Stein
On Sun, Mar 25, 2012 at 9:06 AM, Dima Pasechnik wrote: > 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 I think you should close that. The following works fine in the notebook. I

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 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: >> >> The docume

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] 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

[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: > ou

[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 t

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