[sage-support] Re: memory leak?
The actual cardinality is computed using the pari library (since the field is a prime field and p10**18). I the leak is in libsingular it must come from constructing the curve, not from computing the cardinality. So it would be worth testing the loop with a new function which constructs the curve and returns nothing. John On Apr 30, 10:47 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: On Apr 30, 9:15 am, opti iram.che...@gmail.com wrote: Michael, Hi Iram, Thanks for your reply. I did the exact same thing under magma, and it consumes 14 meg. Hehe, you know how to get us going :) Have you found anything new? I did find the cause, but I have not found a fix yet. What seems to happens is that for each p a multivariate polynomial ring in libSingular is leaked - all the gory details are at http://trac.sagemath.org/sage_trac/ticket/5949 Regards, Iram Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: memory leak?
On May 1, 2:02 am, John Cremona john.crem...@gmail.com wrote: Hi John, The actual cardinality is computed using the pari library (since the field is a prime field and p10**18). I the leak is in libsingular it must come from constructing the curve, not from computing the cardinality. So it would be worth testing the loop with a new function which constructs the curve and returns nothing. Ok, this seems to indicate for me that maybe Coercion could be involved here in some shape or form since it seems that for every prime we iterate over we create/leak a new mv ring in libSingular. And that cannot be a good thing :) No that I have a clue how to debug this, so I will poke RobertWB - I am sure he has nothing better to do that to dive into this problem and will be happy to debug this ;) John Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Help on creating packages/modules
Dear Supporters, I am about to create a sage package pGroupcohomology comprising several (extension) modules mtx, resolution, ... From various Python and Cython manual pages, I thought that I ought to write the following in my setup.py: packages=[pGroupCohomology], ext_package=pGroupCohomology, # Here I am not sure: Necessary? ext_modules=[ Extension(pGroupCohomology.mtx, ...), Extension(pGroupCohomology.resolution,...)], ... After installation, the following works: sage: from pGroupCohomolog.mtx import MTX sage: M=MTX('some data') I can do computations with M. But M does not know where it belongs to: sage: M.__class__ mtx.MTX class instance at ... I am puzzled by the fact that it says mtx.MTX and not pGroupCohomology.mtx.MTX, which also makes pickling fail. Can you tell me why the above setup does not yield the desired package structure? Best regards, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Failure running sage-vmware-sse2-3.4.1
Most likely you're right William.. It seems to be a compiler/processor issue, since I have a very similar configuration on my home machine where it runs perfectly. What is the output of cat /proc/cpuinfo on your computer? Here's the one of the machine where it runs perfectly on ubuntu (just for comparison).. I'll post the one from work (AMD64) and the gdb output on monday sage [4]: !cat /proc/ cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz stepping: 6 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings: 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm ida tpr_shadow vnmi flexpriority bogomips: 4788.08 clflush size: 64 power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz stepping: 6 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings: 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm ida tpr_shadow vnmi flexpriority bogomips: 4787.71 clflush size: 64 power management: --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: GAP still doesn't start in sage-3.4.1...
On Fri, May 1, 2009 at 2:24 AM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Apr 28, 6:24 am, Johan Oudinet johan.oudi...@gmail.com wrote: Hi, Hi Johan, I saw in trac that the ticket about my problem to start Sage in a Debian Lenny 64bit is closed since GAP was downgraded. We closed it since the problem was seemingly related to the new GAP. I thought Sage-3.4.1 should now works on my server... but it still doesn't. And the problem is still the same. When I run sage for the first time, I got: * RuntimeError: Unable to start gap because the command 'gap -r -b -p -T -o G /users/asspro/oudinet/projects/sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux/data//extcode/gap/sage.g' failed. Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. * Any clue? Can you give a little more detail? By sheer accident it was just Well, this is exactly what I've done: 0) ssh to the server as a normal user. 1) download sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux.tar.gz from France mirror 2) decompress it (tar xzf) 3) cd sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux 4) ./sage What more detail can I give you? $ uname -a Linux serveur-fortesse 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 UTC 2008 x86_64 GNU/Linux revealed in IRC that inside a chroot env without the pty dev filesystem mounted pexpect obviously doesn't work. Any chance this is something that could have happened to you? I don't think so... AFAIK, I didn't run sage from a chroot env. But I don't know if 'pty dev filesystem' was mounted. What should I do to verify this? -- Johan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] problem with notebook
Hi! I need your help, i just compiled sage-3.4 on my Ubuntu Hardy. It took almost 4 hrs but it went all just fine, but i run the soft and: sage: notebook sage.server.notebook.notebook_object.NotebookObject instance at 0x969d8ac sage: inotebook function inotebook at 0x96a3144 Nothing happens!!! Thanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with notebook
Hi, 10100010. You have to enter Python commands, since the interface is a Python interpreter. Try notebook(). H On May 1, 3:32 pm, 10100010 erosta...@gmail.com wrote: Hi! I need your help, i just compiled sage-3.4 on my Ubuntu Hardy. It took almost 4 hrs but it went all just fine, but i run the soft and: sage: notebook sage.server.notebook.notebook_object.NotebookObject instance at 0x969d8ac sage: inotebook function inotebook at 0x96a3144 Nothing happens!!! Thanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with notebook
Harald Schilly wrote: Hi, 10100010. You have to enter Python commands, since the interface is a Python interpreter. Try notebook(). or read the documentation by doing: sage: notebook? You can also read the tutorial, which has a section on the notebook: http://sagemath.org/doc/tutorial/interactive_shell.html#the-notebook-interface Jason H On May 1, 3:32 pm, 10100010 erosta...@gmail.com wrote: Hi! I need your help, i just compiled sage-3.4 on my Ubuntu Hardy. It took almost 4 hrs but it went all just fine, but i run the soft and: sage: notebook sage.server.notebook.notebook_object.NotebookObject instance at 0x969d8ac sage: inotebook function inotebook at 0x96a3144 Nothing happens!!! Thanks! -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sage-python
Is it possible to do something like this at the command prompt #!/usr/bin/env sage import sys from sage.all import* factorial(10) and have sage calculate 10! When I do it from the cp nothing happens. When I save the file I get sage.all not found. python ?.py Does sage-python run sage's python. Can't get this to work. I see many posts on this topic, but no help. Is there a tutorial? I want to use the sage.all module using python Thanks --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: memory leak?
On May 1, 2009, at 2:34 AM, mabshoff wrote: On May 1, 2:02 am, John Cremona john.crem...@gmail.com wrote: Hi John, The actual cardinality is computed using the pari library (since the field is a prime field and p10**18). I the leak is in libsingular it must come from constructing the curve, not from computing the cardinality. So it would be worth testing the loop with a new function which constructs the curve and returns nothing. Ok, this seems to indicate for me that maybe Coercion could be involved here in some shape or form since it seems that for every prime we iterate over we create/leak a new mv ring in libSingular. And that cannot be a good thing :) No that I have a clue how to debug this, so I will poke RobertWB - I am sure he has nothing better to do that to dive into this problem and will be happy to debug this ;) Yep, I bet coercion is leaking rings. I'll look at this during Sage days, if not sooner. - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Help on creating packages/modules
On May 1, 2009, at 4:16 AM, Simon King wrote: Dear Supporters, I am about to create a sage package pGroupcohomology comprising several (extension) modules mtx, resolution, ... From various Python and Cython manual pages, I thought that I ought to write the following in my setup.py: packages=[pGroupCohomology], ext_package=pGroupCohomology, # Here I am not sure: Necessary? No, I don't think you need that. ext_modules=[ Extension(pGroupCohomology.mtx, ...), Extension(pGroupCohomology.resolution,...)], ... After installation, the following works: sage: from pGroupCohomolog.mtx import MTX sage: M=MTX('some data') I can do computations with M. But M does not know where it belongs to: sage: M.__class__ mtx.MTX class instance at ... I am puzzled by the fact that it says mtx.MTX and not pGroupCohomology.mtx.MTX, which also makes pickling fail. Can you tell me why the above setup does not yield the desired package structure? Is everything in a pGroupCohomology directory with an __init__.py file? - Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] installing binary of sage-3.4.1 OSX10.4 on G4
I wonder if the new binary of sage-3.4.1 OSX10.4 for MAC G4 is correct. or if I am doing something wrong. The sage folder in the .dmg cannot be moved to my User Account as in the previous version. According to the Read-me file, it seems possible that it really is an Intel version. Please help. Thank you --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Help on creating packages/modules
Dear Robert, On 1 Mai, 21:14, Robert Bradshaw rober...@math.washington.edu wrote: ... Is everything in a pGroupCohomology directory with an __init__.py file? Yes (and please excuse that I wrote both to Cython-dev and Sage- devel). - In SAGE_LOCAL/lib/python2.5/site-packages/ I have a folder pGroupCohomology. - It contains __init__.py, mtx.so and some other .so - When I wrote my original post, I accidentally had another copy of mtx.so in the site-packages folder (not a subfolder). I removed it, and now the pickling error is a bit different: PicklingError: Can't pickle mtx.MTX_unpickle_class: import of module mtx failed Explanation of the Pickling errors: 1 The module pGroupCohomology.mtx believes that it is simply mtx, without being contained in a package. 2 Hence, when pickling, the MTX_unpickle_class is looked up in mtx (not pGroupCohomology.mtx). 3 When there was an abandoned mtx.so in the site-packages, it was possible to find mtx.MTX_unpickle_class, but of course it was not identic with pGroupCohomology.mtx.MTX_unpickle_class --- this explains the error message from my first post 4 Now, there is no mtx.so in the site-packages (only in a sub-folder). Hence, looking up mtx.MTX_unpickle_class fails, therefore the new error message. Anyway. It seems the key problem is that the modules in the package pGroupCohomology are unaware that they belong to a package. And I have no clue why. Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: memory leak?
On May 1, 12:12 pm, Robert Bradshaw rober...@math.washington.edu wrote: SNIP No that I have a clue how to debug this, so I will poke RobertWB - I am sure he has nothing better to do that to dive into this problem and will be happy to debug this ;) Yep, I bet coercion is leaking rings. I'll look at this during Sage days, if not sooner. Thanks, I ought to look over your shoulder to get an idea on how to attack those leaks in the future :) - Robert Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4
On May 1, 12:06 pm, nickname bru...@fordham.edu wrote: Hi, I wonder if the new binary of sage-3.4.1 OSX10.4 for MAC G4 is correct. or if I am doing something wrong. I have not verified it to work, but I assume it has been well tested by the packager. His builds have worked in the past. The sage folder in the .dmg cannot be moved to my User Account as in the previous version. According to the Read-me file, it seems possible that it really is an Intel version. It is still possible. What exactly is the problem you see? Please help. Thank you Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: GAP still doesn't start in sage-3.4.1...
On May 1, 5:48 am, Johan Oudinet johan.oudi...@gmail.com wrote: On Fri, May 1, 2009 at 2:24 AM, mabshoff SNIP Hi Johan, Can you give a little more detail? By sheer accident it was just Well, this is exactly what I've done: 0) ssh to the server as a normal user. 1) download sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux.tar.gz from France mirror 2) decompress it (tar xzf) 3) cd sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux 4) ./sage Ok. Does gap start by itself, i.e. ./sage -gap? What more detail can I give you? $ uname -a Linux serveur-fortesse 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 UTC 2008 x86_64 GNU/Linux revealed in IRC that inside a chroot env without the pty dev filesystem mounted pexpect obviously doesn't work. Any chance this is something that could have happened to you? I don't think so... AFAIK, I didn't run sage from a chroot env. But I don't know if 'pty dev filesystem' was mounted. What should I do to verify this? Please post the output of mount. I am not sure what else related to xen could be a factor here. Have you used and/or installed another version of GAP independently of Sage? Is there any Sage release that ever worked on your platform? -- Johan Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage-python
On May 1, 10:54 am, Mikie thephantom6...@hotmail.com wrote: Is it possible to do something like this at the command prompt #!/usr/bin/env sage import sys from sage.all import* factorial(10) and have sage calculate 10! When I do it from the cp nothing happens. When I save the file I get sage.all not found. What is cp? python ?.py Does sage-python run sage's python. Can't get this to work. sage is a script. I see many posts on this topic, but no help. Is there a tutorial? I have seen some documentation, but I don't know where or if it is in the manual. I want to use the sage.all module using python Thanks This works: mabsh...@sage:/scratch/mabshoff/sage-3.4.2.rc0$ ./sage -sh Starting subshell with Sage environment variables set. Be sure to exit when you are done and do not do anything with other copies of Sage! mabsh...@sage:/scratch/mabshoff/sage-3.4.2.rc0$ cat foo.py #!/usr/bin/env python import sys from sage.all import * print factorial(10) mabsh...@sage:/scratch/mabshoff/sage-3.4.2.rc0$ ./foo.py 3628800 Note that inside the python script there is no preparser. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Help on creating packages/modules
Hi! On 1 Mai, 21:46, simon.k...@uni-jena.de wrote: Anyway. It seems the key problem is that the modules in the package pGroupCohomology are unaware that they belong to a package. And I have no clue why. The thread here seems relevant: http://www.mail-archive.com/cython-...@codespeak.net/msg02790.html It starts with the same observation that when a cython module foo with a class Foo is part of a package pkg then one has pkg.foo.Foo ().__module__ == 'foo', while it should be == 'pkg.foo'. It is also said (if I understand correctly) that it is a pyrex vs. cython issue. The difference is that the poster also wants to be able to fix the fully qualified module name at run time, not at compile time. I would be happy to fix the fully qualified module name at compile time --- but I don't know how, since Cython apparently gets it wrong. Meanwhile I wonder how all the extension modules in Sage get their fully qualified names. After Robert's advice off list, I changed the folder names in my sources so that it reflects the intended package- module structure. Now I have spkg-install src/ setup.py pGroupCohomology/ (before, i used CohoSrc/) __init__.py mtx.pyx ... In setup.py, I have name=pGroupCohomology, packages=[pGroupCohomology], ext_modules=[... Extension(pGroupCohomology.mtx, sources = [pGroupCohomology/mtx.pyx], libraries = [mtx], include_dirs = [mtx2.2.3/src/, pGroupCohomology] ), ... ] But still mtx does not now that it is part of the pGroupCohomology package. And I don't see a fundamental difference to all the 100s extensions in Sage. Is setup.py not the right place to determine the package-module structure? Is it needed to hard-code the fully qualified name into mtx.pyx? But how? Cheers, Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Sage RSS reader in firefox and .xml .rss in SAGE
I've just remembered about the Sage RSS reader and an idea to integrate it with SAGE came to mind. It would be very useful to have a possibility of publishing information about new worksheets available or updates or anything else in RSS format and very nice to read using Sage RSS reader plugin for firefox. Don't know whether it has already been discussed but post it to the list for developers attention... Serge --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4
As said in my email, it is not possible to move the sage folder out of the .dmg container. Also, the only to move this non-working .dmg into the trash is to force Finder to quit and restart! Thank you. On May 1, 5:02 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: On May 1, 12:06 pm, nickname bru...@fordham.edu wrote: Hi, I wonder if the new binary of sage-3.4.1 OSX10.4 for MAC G4 is correct. or if I am doing something wrong. I have not verified it to work, but I assume it has been well tested by the packager. His builds have worked in the past. The sage folder in the .dmg cannot be moved to my User Account as in the previous version. According to the Read-me file, it seems possible that it really is an Intel version. It is still possible. What exactly is the problem you see? Please help. Thank you Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Sage in an xterm - some queries
I generally use my CAS's (Maple, Maxima, Sage at the moment) in an xterm, unless I have some application which requires graphics. But there are one or two interface issues which would make xterm/console mode much more pleasant to use. In no particular order: * Different colours (user specified) for prompt, input and output * Output automatically pretty-printed and centered * (This is a more general Sage issue): when a variable is defined, as in x=sqrt(y^2+1) it is automatically printed to the screen, unless the user requests otherwise (say, with a semi-colon) Is there any easy way of coercing Sage to act like this? Thanks, Alasdair --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4
On May 1, 5:42 pm, nickname bru...@fordham.edu wrote: As said in my email, it is not possible to move the sage folder out of the .dmg container. Yes, I read that already. How does that manifest itself? Do you get an error message? Is the folder not selectable? etc. Also, the only to move this non-working .dmg into the trash is to force Finder to quit and restart! It sounds like your local install of OSX is either broken or the dmg you downloaded has been corrupted during the download (assuming the upload worked when placing it on the sever). Have you verified the md5sum that is posted with the binary right on the download page? Thank you. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage in an xterm - some queries
Hi, On Sat, May 2, 2009 at 10:53 AM, Alasdair amc...@gmail.com wrote: I generally use my CAS's (Maple, Maxima, Sage at the moment) in an xterm, unless I have some application which requires graphics. But there are one or two interface issues which would make xterm/console mode much more pleasant to use. In no particular order: * Different colours (user specified) for prompt, input and output * Output automatically pretty-printed and centered Can you give some specific examples of what you would like to see? * (This is a more general Sage issue): when a variable is defined, as in x=sqrt(y^2+1) it is automatically printed to the screen, unless the user requests otherwise (say, with a semi-colon) If this can be done, I hope it would be optional or easy to turn off -- I'm quite fond of the current behaviour. Is there any easy way of coercing Sage to act like this? You would probably need to tweak the preparser and play with ipython, but I don't know enough about this to actually do it... Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] @parallel() globals problem
I don't see many posts about the @parallel decorator, but I'm having a problem that I would think would be pretty common. I want to decorate a function that performs some action with an instantiated class and returns the results of that class method, but when I try to execute the generator returned from the decorated function, I get an error that the 'global' class cannot be found. Here's an example: class foo(): def do_something(self, myargs): return myargs @parallel() def f(N): a = foo() return a.do_something(N) g=f([1,2,3,4]) list(g) --- NameError Traceback (most recent call last) /home/jlh/ipython console in module() /usr/local/sage-3.4.1/local/lib/python2.5/site-packages/sage/parallel/ multiprocessing.pyc in parallel_iter(processes, f, inputs) /usr/local/sage-3.4.1/local/lib/python2.5/site-packages/processing/ pool.pyc in next(self, timeout) NameError: global name 'foo' is not defined sage: So anyway, the only examples I've found of sage + @parallel use functions that don't instantiate a user class. They just use like def f(N): return N^2 and so on. Thanks for any pointers to docs or examples that might help me use this decorator. Thanks, J --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage in an xterm - some queries
On May 1, 2009, at 17:53 , Alasdair wrote: I generally use my CAS's (Maple, Maxima, Sage at the moment) in an xterm, unless I have some application which requires graphics. But there are one or two interface issues which would make xterm/console mode much more pleasant to use. In no particular order: * Different colours (user specified) for prompt, input and output There is some [limited] capability to control the colors via Ipython, the component that handles terminal interaction. Look at the file ~/.sage/ipython/ipythonrc (search for color). * Output automatically pretty-printed and centered Ewww :-} If `twere to be done, I'd prefer the default to be off. This isn't automatic, but some pretty-printing can occur: sage: f=x^2 sage: f x^2 sage: print f 2 x But note this: sage: Zx.x=PolynomialRing(ZZ); sage: f=x^2 sage: f x^2 sage: print f x^2 The former behavior comes from the symbolic ring support, which is currently handled by maxima (and is therefore subject to change). * (This is a more general Sage issue): when a variable is defined, as in x=sqrt(y^2+1) it is automatically printed to the screen, unless the user requests otherwise (say, with a semi-colon) Like Alex, I prefer the current behavior, so again, if done, I'd prefer it default to off. Is there any easy way of coercing Sage to act like this? I don't think so, beyond what's mentioned in this thread; someone who really knows may be able to be more specific. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Weaseling out of things is what separates us from the animals. Well, except the weasel. - Homer J Simpson --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4
When I say I cannot move the sage folder, I mean, it just jumps back into the .dmg package with NO complaints or error messages. I have no evidence of any problem with my OSX (I downloaded 3.4 about 3 or 4 weeks ago with no problems). I also re- downloaded both with Firefox and with Safari. Always the same result. The README.text file includes ** WARNING ** If you get an error copying the folder do the following: Do not drag the the folder out of the dmg image. Use the shell (via Terminal) and do a cp -R -P /Volumes/sage-2.9.2-OSX10.4-intel-i386-Darwin/sage . from the location where you want to install to. Adjust the name of the Volume as needed. This is why I think there may be a mix-up, since the G4 is NOT an Intel machine... Thanks, Michael, armand On May 1, 8:56 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: On May 1, 5:42 pm, nickname bru...@fordham.edu wrote: As said in my email, it is not possible to move the sage folder out of the .dmg container. Yes, I read that already. How does that manifest itself? Do you get an error message? Is the folder not selectable? etc. Also, the only to move this non-working .dmg into the trash is to force Finder to quit and restart! It sounds like your local install of OSX is either broken or the dmg you downloaded has been corrupted during the download (assuming the upload worked when placing it on the sever). Have you verified the md5sum that is posted with the binary right on the download page? Thank you. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4
Look in Console (in your Utilities Folder - cmd-shift-u). There might be something related in there. On 2/05/2009, at 2:31 PM, nickname wrote: When I say I cannot move the sage folder, I mean, it just jumps back into the .dmg package with NO complaints or error messages. I have no evidence of any problem with my OSX -- http://yomcat.geek.nz --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---