[sage-support] Re: Why isn't Sage showing plots from matplotlib/pylab ?

2010-05-14 Thread zetro
Try using plt.savefig('foo.png') instead of plt.show(). The Sage Notebook automatically displays any files saved in the evaluation directory. This should probably be put in documentation somewhere (if it isn't already). It shows now, thanks. But when I evaluate both those cells it shows the

[sage-support] parametric_plot with Piecewise doesn't work ?

2010-05-14 Thread bourbabis
Hello folks ! Look at this : var('a') f = Piecewise([[(0, 1), a], [(1, 2), 2*a]]) g = Piecewise([[(0, 1), 3*a], [(1, 2), 4*a]]) parametric_plot((f, g), (0, 2)) I get the following error message : Traceback (click to the left of this block for traceback) . .. AttributeError:

[sage-support] problem with multi line program statement in notebook

2010-05-14 Thread Rajeev
Hi, I am getting the following error in the notebook 1 + \ 2 Traceback (most recent call last): File stdin, line 1, in module File _sage_input_34.py, line 10, in module exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n +

Re: [sage-support] problem with multi line program statement in notebook

2010-05-14 Thread Tim Joseph Dumol
Hi, On Fri, May 14, 2010 at 7:28 PM, Rajeev rajs2...@gmail.com wrote: Hi, I am getting the following error in the notebook 1 + \ 2 Traceback (most recent call last): File stdin, line 1, in module File _sage_input_34.py, line 10, in module exec

Re: [sage-support] problem with multi line program statement in notebook

2010-05-14 Thread Tim Joseph Dumol
On Fri, May 14, 2010 at 7:39 PM, Tim Joseph Dumol t...@timdumol.com wrote: Hi, On Fri, May 14, 2010 at 7:28 PM, Rajeev rajs2...@gmail.com wrote: Hi, I am getting the following error in the notebook 1 + \ 2 Traceback (most recent call last): File stdin, line 1, in module File

Re: [sage-support] primality certificate?

2010-05-14 Thread William Stein
On Thu, May 13, 2010 at 5:29 PM, Greg Marks gtma...@gmail.com wrote: Is there a SAGE command that will produce a primality certificate for a (prime) integer input? Best regards, Greg Marks There's nothing native to Sage. If there is something in Sage capable of doing this it is in PARI (a

[sage-support] Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread David Grudoski
Can anyone tell me how to use os.chdir to go to my C: drive when running sage in virtual box? I can't get out of the '/home/' directory. executing the following in sage notebook import os os.chdir('C:') gives an error No such file or Directory I set C up a a permanent shared folder from the

Re: [sage-support] Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread Robert Bradshaw
On May 14, 2010, at 9:32 AM, David Grudoski wrote: Can anyone tell me how to use os.chdir to go to my C: drive when running sage in virtual box? I can't get out of the '/home/' directory. executing the following in sage notebook import os os.chdir('C:') gives an error No such file or

[sage-support] Re: Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread DavidG
os.system(ls /) returns: bindev initrd.img media opt sageselinux sys var boot etc lib mntproc sagero squash tmp vmlinuz cdrom home lost+found nohup.out root sbinsrv usr 0 So I've got no idea how to find C: ??? On May 14, 9:43 am,

[sage-support] Re: Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread Jason Grout
On 5/14/10 12:18 PM, DavidG wrote: os.system(ls /) returns: bindev initrd.img media opt sageselinux sys var boot etc lib mntproc sagero squash tmp vmlinuz cdrom home lost+found nohup.out root sbinsrv usr 0 So I've got no idea how to

[sage-support] Re: Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread DavidG
Thanks for the tip I'll check it out but I'm running Virtual Box on a Windows Vista system On May 14, 10:46 am, Jason Grout jason-s...@creativetrax.com wrote: On 5/14/10 12:18 PM, DavidG wrote: os.system(ls /) returns: bin    dev   initrd.img  media         opt   sage    selinux  sys  

[sage-support] Re: Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread Jason Grout
On 5/14/10 1:19 PM, DavidG wrote: Thanks for the tip I'll check it out but I'm running Virtual Box on a Windows Vista system Yes. The commands about mounting things are talking about what to do inside of Virtualbox (i.e., inside the linux system). Jason -- To post to this group, send

[sage-support] Re: Can't use os.chdir with Sage in virtualbox

2010-05-14 Thread DavidG
Thanks for the tips Jason, After a number of bizarre reprtitions of the same commands and the threads final entry: http://www.linuxquestions.org/questions/linux-software-2/virtualbox-shared-folders-613555/ I got it to mount. Your help was much appreciated Thanks On May 14, 12:09 pm, Jason Grout

[sage-support] Octave interface synchronization

2010-05-14 Thread Pablo W.
Hello, When using the octave interface, I have occasonally encountered some synchronization issues, with some output corresponding to older entries. For instance when issuing : print octave.execute(help('randn')) only one part of randn documentation is displayed, the end being delayed until the