[sage-support] Re: non-english characters in Notebook
William, thanks for reply. For now, I'll try to add encoding instructions to the html in Edit mode... As for me, I'm university professor (in electrical engineering field) trying to find non-proprietary tools for my students :-) By the way, did you see http://rnd.cnews.ru/math/news/...shtml?2007/12/10/278779 Is this a significant news outlet in Russia? Thanks for this info. Yes, it's well known tech news source here. This publication can be helpful when talking to directors :-). --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
Well, no luck with direct workaround. If I change %u0441 to #x0441;, it shows correct char *for this only session*, but on save+load, it gets replaced by even more non- english char (like euro sign :-) You're right, this seems caused by how worksheet is saved/loaded. The only way of indirect workaround I can think of so far is to load worksheet into html frame and constantly do %uN - #xN; replacements with Javascript. BTW, how can I add multiple lines comment in Notebook? So far, the 2nd line is discarded. Also, if I create a comment-only section, it's discarded on save/load. I'm just trying to make text-only (no math) block. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: [sage-devel] Re: [sage-support] non-english characters in Notebook
On Dec 12, 2007 8:36 AM, William Stein [EMAIL PROTECTED] wrote: On Dec 12, 2007 7:48 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I need to use non-english characters (in comments) in Notebook worksheet. While working, they're shown w/o problem, but if I save (download to file) worksheet, then close SAGE, then open again and load .sws file, sometimes (!) I see just unicode codes (like %u4041) instead of my chars. Strange, but sometimes they're loaded correctly... I'm using Sage v 2.8.13 (VMware) under winXP Pro. Am I missing something? No, you are not missing something. More Sage is missing something in how that functionality was implemened. You're probably one of the first ever Russian uses of Sage, and we have had very little testing of Unicode in Sage. Hopefully fixing the above is for developers just a matter of changing a few lines in SAGE_ROOT/devel/sage/sage/server/noteboook that relate to loading and saving the file worksheet.txt. I've made this issue a trac ticket: http://trac.sagemath.org/sage_trac/ticket/1477 William, To fix this issue you might 2 either or both of these two things: 1) in the notebooks header put: meta http-equiv=Content-Type content=text/html; charset=UTF-8 2) try doing: data_going_to_notebook = (some_text_data).encode(utf-8) right before it goes into the twisted Response object's 'stream' not sure if this is definitely the full fix, but it's at least very related. Alex By the way, did you see http://rnd.cnews.ru/math/news/line/index_science.shtml?2007/12/10/278779 Is this a significant news outlet in Russia? -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
Alex, Excuse me for asking, but if I'm not mistaken, I (end-user) can't do any of these 2 things, right? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
Besides, I don't think the 1st one (meta tag) will work, because %u is not standard html representation for unicode char... --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Starting notebook() mode as daemon
Hello, Is anybody running sage in notebook() mode as an automatically started service/daemon? Any hints on doing this? Thanks, Šarūnas Math Dept., Dartmouth --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Display of free module element is funny
The vector v2 doesn't display properly in the attached Sage output. Or rather, the free module element v2. (Should I be worried that I got a free module element when I expected a vector, or will everything work out for the best?) Cheers, Peter --- sage: v1=vector([1/2,1/2]) sage: v1 (1/2, 1/2) sage: type(v1) type 'sage.modules.vector_rational_dense.Vector_rational_dense' sage: v2=vector([x/(2*x),x/(2*x)]) sage: v2 ( 1 - 2,1 - 2) sage: type(v2) type 'sage.modules.free_module_element.FreeModuleElement_generic_dense' sage: type(v2[1]) class 'sage.calculus.calculus.SymbolicArithmetic' --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Display of free module element is funny
On Dec 13, 2007 9:39 AM, pgdoyle [EMAIL PROTECTED] wrote: The vector v2 doesn't display properly in the attached Sage output. Or rather, the free module element v2. (Should I be worried that I got a free module element when I expected a vector, or will everything work out for the best?) Vectors are elements of free modules :-).The vector command is just a command to create vectors. The output of vectors with symbolic entries is crap, as you illustrate below. I've fixed this: http://www.sagetrac.org/sage_trac/ticket/1488 Cheers, Peter --- sage: v1=vector([1/2,1/2]) sage: v1 (1/2, 1/2) sage: type(v1) type 'sage.modules.vector_rational_dense.Vector_rational_dense' sage: v2=vector([x/(2*x),x/(2*x)]) sage: v2 ( 1 - 2,1 - 2) sage: type(v2) type 'sage.modules.free_module_element.FreeModuleElement_generic_dense' sage: type(v2[1]) class 'sage.calculus.calculus.SymbolicArithmetic' -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
Not possible to use html+js wrapper. While it works ok with static file (saved as html), with *live* worksheet an error occures: === uncaught exception: Permission denied to get property HTMLDocument.body === However, it's not a problem any more, as now I know how to set pure html sections that are rendered w/o problem with any characters. Thanks, William! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
On Dec 13, 2007 10:32 AM, greg2k4 [EMAIL PROTECTED] wrote: However, it's not a problem any more, as now I know how to set pure html sections that are rendered w/o problem with any characters. Thanks, William! Could you summarize the situation with rendering problems? Is it as follows: (1) When you try to put them in input cells, they get corrupted on load/save. (2) Using edit mode, unicode not in {{{}}}'s gets saved just fine. Oh, by the way, when you're entering html in edit mode, you can just do, e.g., consider $y^2 = x^3 + \sqrt{x}$ and the formula will get typeset using jsmath. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] sage-vmware: empty trash and get problems
Browsing my sage/notebook folders, I found a lot of documents in Trash. Along with my own worksheets, there were some others', perhaps leaved by developers. While it was a luck to found a tutorial chapter there (which lead me to very important knowledge), I tried to empty the trash. BTW, there's no way to just delete forever only to archive. But, when I archived all trash content, it hangs... Closed Firefox, VMware Player, reboot - everything was to-o-o-oo slow and buggy, almost any loading of saved file caused an error. I ended up deleting all sage files and unpacking them again from distribution ZIP. Now everything is fast again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
On Dec 13, 2007 10:41 AM, greg2k4 [EMAIL PROTECTED] wrote: Browsing my sage/notebook folders, I found a lot of documents in Trash. Along with my own worksheets, there were some others', perhaps leaved by developers. When you interactively browse the help through the sage notebook maybe it creates those worksheets While it was a luck to found a tutorial chapter there (which lead me to very important knowledge), I tried to empty the trash. BTW, there's no way to just delete forever only to archive. We never implemented a delete trash feature for the notebook yet: http://www.sagetrac.org/sage_trac/ticket/432 I'll get around to this soon. But, when I archived all trash content, it hangs... Closed Firefox, VMware Player, reboot - everything was to-o-o-oo slow and buggy, almost any loading of saved file caused an error. I ended up deleting all sage files and unpacking them again from distribution ZIP. Now everything is fast again. Gees, that's terrible. I'm sorry you had to do that. I've posted that this happened to trac 432 in case that will help... -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] command line install of OS X binary
Hi, I would like to install sage on a bunch (30-60) of computers (intel OS X machines) which don't have the developer tools included (like make). Is there a way of remotely installing the OS binaries? Has anyone done something like this on a large scale? I will attempt to figure this out on my own but comments/help are appreciated. Thanks, Marshall Hampton --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: How to use mathematica and sage ?
William Stein wrote: On Dec 12, 2007 10:00 PM, pgdoyle wrote: Hi William, If we set up a sage notebook server on a machine with mathematica installed, and let the general public sign up for accounts, then the general public will be able to run mathematica through the sage browser. And without having looked at the license agreement for our mathematica installation, I can be pretty sure that this is something Wolfram will have tried to prevent. I imagine other people will have pondered this, and I wonder what the current thinking is about it. Wow, from this point of view, Sage suddenly seems to have the potential to be a threatening copyright circumvention device or something, like bittorrent. I definitely hadn't thought of things in quite that way before. Anyway, I'm certain that doing what you describe above would be a violation of the Wolfram license agreement, and I am careful never to do it (e.g., sagenb.org only has free software available). Maybe -- I do *not* know for sure -- you could do this if instead you let only people who are authorized to use that copy of Mathematica anyways get accounts. E.g., at UW we have a site license for Mathematica, so all students, staff, and faculty at UW could legally use Mathematica severed via a Sage notebook using campus-owned equipment. According to the license agreement at http://www.wolfram.com/terms/MathematicaLicenseAgreement.pdf , the prohibited uses include: All uses of the Software and other elements of the Product not specifically stated in the Permitted Uses section of this Agreement are prohibited, including without limitation: ... h. allowing access to the Product by any user other than Licensee, including without limitation, access to the Product via a web server which is only allowed pursuant to a valid webMathematicaTM license agreement; (you might check to see if the text is the same in your license agreement---I believe the above is for a single-user license). I asked my campus Wolfram representative once if I could have a wiki that would allow students to run mathematica calculations (we had a site license and Mathematica was on all the student labs). After he talked with Wolfram, I was told that I would need a webMathematica something-or-other and that I wasn't allowed to provide web access using regular mathematica. Incidentally, that's about when I started discovering the Axiom wiki and started learning more about Sage :). Of course, if there is doubt, we ought to have the questions clarified by an official representative of Wolfram. -Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
Could you summarize the situation with rendering problems? Is it as follows: (1) When you try to put them in input cells, they get corrupted on load/save. To be correct, they're replaced by non-browser unicode codes (like %u0440 instead of #x0440; ) (2) Using edit mode, unicode not in {{{}}}'s gets saved just fine. Yes, as they are NOT processed (as I understand) and get saved as is. Oh, by the way, when you're entering html in edit mode, you can just do, e.g., consider $y^2 = x^3 + \sqrt{x}$ and the formula will get typeset using jsmath. Thanks, can be helpful when writing my materials. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: How to use mathematica and sage ?
On Dec 13, 2007 10:35 AM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Dec 12, 2007 10:00 PM, pgdoyle wrote: Hi William, If we set up a sage notebook server on a machine with mathematica installed, and let the general public sign up for accounts, then the general public will be able to run mathematica through the sage browser. And without having looked at the license agreement for our mathematica installation, I can be pretty sure that this is something Wolfram will have tried to prevent. I imagine other people will have pondered this, and I wonder what the current thinking is about it. Wow, from this point of view, Sage suddenly seems to have the potential to be a threatening copyright circumvention device or something, like bittorrent. I definitely hadn't thought of things in quite that way before. Anyway, I'm certain that doing what you describe above would be a violation of the Wolfram license agreement, and I am careful never to do it (e.g., sagenb.org only has free software available). Maybe -- I do *not* know for sure -- you could do this if instead you let only people who are authorized to use that copy of Mathematica anyways get accounts. E.g., at UW we have a site license for Mathematica, so all students, staff, and faculty at UW could legally use Mathematica severed via a Sage notebook using campus-owned equipment. According to the license agreement at http://www.wolfram.com/terms/MathematicaLicenseAgreement.pdf , the prohibited uses include: All uses of the Software and other elements of the Product not specifically stated in the Permitted Uses section of this Agreement are prohibited, including without limitation: ... h. allowing access to the Product by any user other than Licensee, including without limitation, access to the Product via a web server which is only allowed pursuant to a valid webMathematicaTM license agreement; Wow, this makes it seem like doing the following is a clear violation of the Mathematica license agreement: sage: notebook() type into the notebook on my computer at localhost: mathematica('2 + 2') and press shift-enter. Pow, I've just used Mathematica via a web server without a valid webMathematica TM license agreement! If this really is a violation of the license agreement, I would definitely like to know, so I can put some sort of disclaimer into Sage about this, and when I demo this feature in a talk I'll have to say kids, don't try this at home! -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
On Dec 13, 2007 10:48 AM, Marshall Hampton [EMAIL PROTECTED] wrote: Hi, I would like to install sage on a bunch (30-60) of computers (intel OS X machines) which don't have the developer tools included (like make). Is there a way of remotely installing the OS binaries? Has anyone done something like this on a large scale? Take the following with a grain of salt, since I've never done this before. Just extract the appropriate binary from here on one of them: http://sagemath.org/SAGEbin/apple_osx/intel/ and make sure it fully works -- do make check!! Then do something with ssh like scp sage-2.8.15-osx10.4-intel-i386-Darwin.tar.gz that_computer: ssh that_computer tar zxvf sage-2.8.15-osx10.4-intel-i386-Darwin.tar.gz ssh that_computer cd sage-2.8.15-osx10.4-intel-i386-Darwin; ./sage where that_computer runs through the hostname. This will only work if they are running ssh servers, which maybe they aren't? William I will attempt to figure this out on my own but comments/help are appreciated. Thanks, Marshall Hampton -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
Trash. Along with my own worksheets, there were some others', perhaps leaved by developers. When you interactively browse the help through the sage notebook maybe it creates those worksheets Don't think so. They had a created date 122 hours again, while my docs were all 30 or less hours again. I've just get the XIP 2 days ago. More probably it's just inherited trash from developer(s). --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Subcontracting to Mathematica
Let me simplify the question. Is there a better way to get Mathematica to go off and compute a Bessel function for me than this: def math_bessel_K(nu,x): m=mathematica('N[BesselK['+str(mathematica(nu)) +','+str(mathematica(x))+'],20]') return m.sage() Cheers, Peter --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
Don't think so. They had a created date 122 hours again must be ago instead of again, of course ;-) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: How to use mathematica and sage ?
Timothy Clemans wrote: So it is illegal to ssh to a machine with Mathematica and use it because it is being used over the web without webmathematica? Well, technically SSH is not http, but on the other hand, the computer probably is still a webserver. [snip] h. allowing access to the Product by any user other than Licensee, including without limitation, access to the Product via a web server which is only allowed pursuant to a valid webMathematicaTM license agreement; Wow, this makes it seem like doing the following is a clear violation of the Mathematica license agreement: sage: notebook() type into the notebook on my computer at localhost: mathematica('2 + 2') and press shift-enter. Pow, I've just used Mathematica via a web server without a valid webMathematica TM license agreement! Wow, gee, I never thought about this one. It's definitely a web server here. You are the licensee, but the wording without limitation makes it sound like it's even forbidden to do this on a single-user license if you bought the software. It sounds like we do need some official clarification at this point. Keep in mind that the other license agreements (like the Network license agreement) probably have different terms. -Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
Correct data: name: Copy of 2.8 elliptic curves owner: admin last edited: 122 days ago by admin same for 1 Untitled (related to sage-vmware 2.8.13 ZIP) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
On Dec 13, 2007 11:07 AM, greg2k4 [EMAIL PROTECTED] wrote: Trash. Along with my own worksheets, there were some others', perhaps leaved by developers. When you interactively browse the help through the sage notebook maybe it creates those worksheets Don't think so. They had a created date 122 hours again, while my docs were all 30 or less hours again. I've just get the XIP 2 days ago. More probably it's just inherited trash from developer(s). Ahh, that must have been me testing out the docbrowser in the vmware image. You're right. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Subcontracting to Mathematica
On Dec 13, 2007 11:08 AM, pgdoyle [EMAIL PROTECTED] wrote: Let me simplify the question. Is there a better way to get Mathematica to go off and compute a Bessel function for me than this: def math_bessel_K(nu,x): m=mathematica('N[BesselK['+str(mathematica(nu)) +','+str(mathematica(x))+'],20]') return m.sage() Yes there is, and you might even find this impressive: def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() Use it: sage: math_bessel_K(2,I) 0.180489972066962*I - 2.592886175491197 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: How to use mathematica and sage ?
On Dec 13, 2007 11:13 AM, Jason Grout [EMAIL PROTECTED] wrote: Timothy Clemans wrote: So it is illegal to ssh to a machine with Mathematica and use it because it is being used over the web without webmathematica? Well, technically SSH is not http, but on the other hand, the computer probably is still a webserver. [snip] h. allowing access to the Product by any user other than Licensee, including without limitation, access to the Product via a web server which is only allowed pursuant to a valid webMathematicaTM license agreement; Wow, this makes it seem like doing the following is a clear violation of the Mathematica license agreement: sage: notebook() type into the notebook on my computer at localhost: mathematica('2 + 2') and press shift-enter. Pow, I've just used Mathematica via a web server without a valid webMathematica TM license agreement! Wow, gee, I never thought about this one. It's definitely a web server here. You are the licensee, but the wording without limitation makes it sound like it's even forbidden to do this on a single-user license if you bought the software. It sounds like we do need some official clarification at this point. Keep in mind that the other license agreements (like the Network license agreement) probably have different terms. Jason: Could you take responsibility for writing to Mathematica about this? Then post the response?Feel free to specifically mention Sage. I'd really like to know if the Mathematica license is really that restrictive. If so, I want to add a disclaimer about this to keep from getting into trouble. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Subcontracting to Mathematica
I'm getting {{{id=2| def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() math_bessel_K(2,I) /// Traceback (most recent call last): File stdin, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 6, in module exec compile(ur'math_bessel_K(Integer(2),I)' + '\n', '', 'single') File /home/was/s/data/extcode/sage/, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 5, in math_bessel_K return mathematica(nu).BesselK(x).N(Integer(20)).sage() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1086, in sage return self._sage_() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1079, in _sage_ return sage.misc.sage_eval.sage_eval(repr(self)) File /home/was/s/local/lib/python2.5/site-packages/sage/misc/ sage_eval.py, line 112, in sage_eval raise SyntaxError, %s\nError using SAGE to evaluate '%s'%(msg, p) SyntaxError: invalid syntax (string, line 1) Error using SAGE to evaluate '- RealNumber('2.592886175491196978167651322538251462935637034451900356688') + RealNumber('0.180489972066962026629620880838378650496225604668529521981')*I' }}} On Dec 13, 11:21 am, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 11:08 AM, pgdoyle [EMAIL PROTECTED] wrote: Let me simplify the question. Is there a better way to get Mathematica to go off and compute a Bessel function for me than this: def math_bessel_K(nu,x): m=mathematica('N[BesselK['+str(mathematica(nu)) +','+str(mathematica(x))+'],20]') return m.sage() Yes there is, and you might even find this impressive: def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() Use it: sage: math_bessel_K(2,I) 0.180489972066962*I - 2.592886175491197 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: non-english characters in Notebook
input block started with %html can contain only ascii chars. non- english gets replaced by %u as described above. G, it inserts: htmlfont color=blackinserted text/fonthtml IMHO, very bad practice and should not be recommended. I'd suggest to use html _ourside_of_{{}}_ whenever possible. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: How to use mathematica and sage ?
William Stein wrote: On Dec 13, 2007 11:13 AM, Jason Grout [EMAIL PROTECTED] wrote: Timothy Clemans wrote: So it is illegal to ssh to a machine with Mathematica and use it because it is being used over the web without webmathematica? Well, technically SSH is not http, but on the other hand, the computer probably is still a webserver. [snip] h. allowing access to the Product by any user other than Licensee, including without limitation, access to the Product via a web server which is only allowed pursuant to a valid webMathematicaTM license agreement; Wow, this makes it seem like doing the following is a clear violation of the Mathematica license agreement: sage: notebook() type into the notebook on my computer at localhost: mathematica('2 + 2') and press shift-enter. Pow, I've just used Mathematica via a web server without a valid webMathematica TM license agreement! Wow, gee, I never thought about this one. It's definitely a web server here. You are the licensee, but the wording without limitation makes it sound like it's even forbidden to do this on a single-user license if you bought the software. It sounds like we do need some official clarification at this point. Keep in mind that the other license agreements (like the Network license agreement) probably have different terms. Jason: Could you take responsibility for writing to Mathematica about this? Then post the response?Feel free to specifically mention Sage. Sure. I'd really like to know if the Mathematica license is really that restrictive. If so, I want to add a disclaimer about this to keep from getting into trouble. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Subcontracting to Mathematica
On Dec 13, 2007 11:54 AM, Timothy Clemans [EMAIL PROTECTED] wrote: I'm getting {{{id=2| def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() math_bessel_K(2,I) /// Traceback (most recent call last): File stdin, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 6, in module exec compile(ur'math_bessel_K(Integer(2),I)' + '\n', '', 'single') File /home/was/s/data/extcode/sage/, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 5, in math_bessel_K return mathematica(nu).BesselK(x).N(Integer(20)).sage() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1086, in sage return self._sage_() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1079, in _sage_ return sage.misc.sage_eval.sage_eval(repr(self)) File /home/was/s/local/lib/python2.5/site-packages/sage/misc/ sage_eval.py, line 112, in sage_eval raise SyntaxError, %s\nError using SAGE to evaluate '%s'%(msg, p) SyntaxError: invalid syntax (string, line 1) Error using SAGE to evaluate '- RealNumber('2.592886175491196978167651322538251462935637034451900356688') + RealNumber('0.180489972066962026629620880838378650496225604668529521981')*I' }}} That's coming from a newline, which appears in Mathematica 5 I guess, but not 6. Anyway, the patch I justed posted at http://trac.sagemath.org/sage_trac/ticket/1491 fixes the problem. Alternatively rewrite the function like this: sage: def math_bessel_K(nu,x): return sage_eval(repr(mathematica(nu).BesselK(x).N(20)).replace('\n','')) Important note: The conversion from Mathematica to Sage, i.e., mathematica_object.sage() is very naive still -- all it is is basically sage_eval(repr(...))! This could/would be improved if somebody cared a lot. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Starting notebook() mode as daemon
On Dec 13, 9:50 am, Šarūnas Burdulis [EMAIL PROTECTED] wrote: Hello, Is anybody running sage in notebook() mode as an automatically started service/daemon? Any hints on doing this? Thanks, Šarūnas Math Dept., Dartmouth I haven't tried it. Do you mean like sage -notebook --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Starting notebook() mode as daemon
On Dec 13, 9:05 pm, G. Edgar [EMAIL PROTECTED] wrote: On Dec 13, 9:50 am, Šarūnas Burdulis [EMAIL PROTECTED] wrote: Hello, Hello Šarūnas, Is anybody running sage in notebook() mode as an automatically started service/daemon? Any hints on doing this? a daemon mode for Sage in on the wishlist - see http://www.sagetrac.org/sage_trac/ticket/381 We usually run Sage inside a screen session or with nohup. Thanks, Šarūnas Math Dept., Dartmouth I haven't tried it. Do you mean like sage -notebook That only works if you are logged in. Once the shell terminates the process gets killed. Various options are nohup, disown and scree. Added to the FAQ. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Call for developers: Looking for FAQ maintainers
Hello, Sage has an faq at http://wiki.sagemath.org/faq It is a rather young wiki page (first real content 2 weeks ago), but it has been growing rapidly due to the influx of more users because of all the recent publicity. I have been trying to add every interesting question that I see on sage-newbie, sage-support and sage-devel, but my other Sage duties often get in the way. So here is your chance to contribute to Sage. This job doesn't require much knowledge about Sage, just some people to spot interesting questions and add them to the page. All you need is to register yourself in the wiki and you are ready to go. Here are a couple things that should be done: * Add content as it comes up :) * Give the FAQ more structure, i.e. add sections about general issues, notebook issues, installation issues, OSX specific issues, you get the idea * Figure out a way to get the faq into the main documentation in an automated way. This is more advanced, but should be done sooner rather than later. If anybody sees a question that has been answered in the FAQ please point the person politely to the FAQ entry. If any additional questions or comments come up please add them back into the FAQ. Sooner or later google should find those pages if people search for problems. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
The problem is that I am not the real administrator of the machines, this is a one time thing. The binaries appear to work, but now I need to install the biopython package, which for some reason needs gcc. So I plan on installing the xcode tools on one machine, and then copying the entire installation. Is that a bad idea? I don't care if its crude if it works. -mh On Dec 13, 1:22 pm, mabshoff [EMAIL PROTECTED] dortmund.de wrote: On Dec 13, 8:04 pm, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 10:48 AM, Marshall Hampton [EMAIL PROTECTED] wrote: Hi, I would like to install sage on a bunch (30-60) of computers (intel OS X machines) which don't have the developer tools included (like make). Is there a way of remotely installing the OS binaries? Has anyone done something like this on a large scale? Take the following with a grain of salt, since I've never done this before. Just extract the appropriate binary from here on one of them: http://sagemath.org/SAGEbin/apple_osx/intel/ and make sure it fully works -- do make check!! Then do something with ssh like scp sage-2.8.15-osx10.4-intel-i386-Darwin.tar.gz that_computer: ssh that_computer tar zxvf sage-2.8.15-osx10.4-intel-i386-Darwin.tar.gz ssh that_computer cd sage-2.8.15-osx10.4-intel-i386-Darwin; ./sage where that_computer runs through the hostname. This will only work if they are running ssh servers, which maybe they aren't? William I would either recommend rsync or NFS to do that job. NFS is less work, but if your network is wonky you will be in for a world of pain. In addition startup times of Sage will likely go up by a lot. rsync on the other hand is a little more work, but if you combine cron and rsync to run some off duty hours that shouldn't be a problem. When I did sysadmin work I always preferred the rsync solution over NFS due to better reliability and better performance. Apple itself has some software deployment tool, but I don't even remember the name of it, so somebody else who knows more about it should let us know. We should also write some chapter with example scripts for the documentation, since I am sure this issue will come up again. Cheers, Michael I will attempt to figure this out on my own but comments/help are appreciated. Thanks, Marshall Hampton -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: sage-vmware: empty trash and get problems
On Dec 13, 2007 12:12 PM, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 11:46 AM, alex clemesha [EMAIL PROTECTED] wrote: Trash. Along with my own worksheets, there were some others', perhaps leaved by developers. When you interactively browse the help through the sage notebook maybe it creates those worksheets Don't think so. They had a created date 122 hours again, while my docs were all 30 or less hours again. I've just get the XIP 2 days ago. More probably it's just inherited trash from developer(s). Ahh, that must have been me testing out the docbrowser in the vmware image. You're right. I wonder if this is related in any way (actually its probably not strictly related, but it is of similar feel) to the fact that there are about 200 or so notebooks edited exactly '171 days ago' here: https://sage.math.washington.edu:8101/pub/ and then relatively few in the last two weeks. No, it has nothing to do with that. He's a person in Russia who is using the Sage notebook via vmware on his own computer. sorry, let me refrase: i think there is a bug in the online notebook such that: there are about 200 or so notebooks edited exactly '171 days ago' and then relatively few in the last two weeks. i.e. probably when the notebook gets restarted it doesn't keep the date that other existing notebooks were created. sorry that it has nothing to do with the above, just thought i would mention that. Alex William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
On Dec 13, 2007 2:10 PM, Marshall Hampton [EMAIL PROTECTED] wrote: The problem is that I am not the real administrator of the machines, this is a one time thing. The binaries appear to work, but now I need to install the biopython package, which for some reason needs gcc. So I plan on installing the xcode tools on one machine, and then copying the entire installation. Is that a bad idea? I don't care if its crude if it works. Ah ha!! You're in luck. Just build biopython and any other packages you want into a copy of sage, then do sage -bdist 2.8.15-hampton-version and wait about 5 minutes. Then SAGE_ROOT/dist/ will contain a tarball sage-2.8.15-hampton-version.tar.gz that is suitable for install on all the other machines, and contains all your optional packages. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
Excellent! Thank you! On Dec 13, 5:30 pm, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 2:10 PM, Marshall Hampton [EMAIL PROTECTED] wrote: The problem is that I am not the real administrator of the machines, this is a one time thing. The binaries appear to work, but now I need to install the biopython package, which for some reason needs gcc. So I plan on installing the xcode tools on one machine, and then copying the entire installation. Is that a bad idea? I don't care if its crude if it works. Ah ha!! You're in luck. Just build biopython and any other packages you want into a copy of sage, then do sage -bdist 2.8.15-hampton-version and wait about 5 minutes. Then SAGE_ROOT/dist/ will contain a tarball sage-2.8.15-hampton-version.tar.gz that is suitable for install on all the other machines, and contains all your optional packages. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
On Dec 13, 2007 4:27 PM, Marshall Hampton [EMAIL PROTECTED] wrote: Excellent! Thank you! The only problem you might run into is if the optional biopython package is somehow not relocatable, which would be a bug you should report here. By the way, could you describe from a sage point of view just what Biopython is. It's something that takes only 15 seconds to install. What does it do, say in a paragraph or 2? William On Dec 13, 5:30 pm, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 2:10 PM, Marshall Hampton [EMAIL PROTECTED] wrote: The problem is that I am not the real administrator of the machines, this is a one time thing. The binaries appear to work, but now I need to install the biopython package, which for some reason needs gcc. So I plan on installing the xcode tools on one machine, and then copying the entire installation. Is that a bad idea? I don't care if its crude if it works. Ah ha!! You're in luck. Just build biopython and any other packages you want into a copy of sage, then do sage -bdist 2.8.15-hampton-version and wait about 5 minutes. Then SAGE_ROOT/dist/ will contain a tarball sage-2.8.15-hampton-version.tar.gz that is suitable for install on all the other machines, and contains all your optional packages. William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Strange behavior in Partition(x).next()
On Dec 13, 2007, at 9:19 PM, mekaj wrote: def get_partitions(x,y=[]): The problem might be your default argument above. This is really a python issue. Every time your function is called, it's getting the *same* list object. The standard python idiom to get around this is: def get_partitions(x, y=None): if y is None: y = [] [... other stuff ...] david --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: command line install of OS X binary
Its a pretty heterogeneous package for bioinformatics; there are lots of modules that do lots of different things, written by different people. Because of that, as with sage, there is some redundancy in function that is slowly being weeded out. There are only about 5-10 very active developers at the moment though (at least that is my impression). As the name implies, its all written in python. To some extent, it imitates the more widely used BioPerl modules; perl has a big lead in bioinformatics but I believe that is a historical artifact and the superiority of python will eventually make it prevail :) I mainly use it for its parsing and database functions - for example, to retrieve a ferritin protein sequence from a 13-lined ground squirrel (Spermophilus tridecemlineatus) from GenBank: from Bio import SeqIO from Bio import GenBank gi_list = GenBank.search_for(Spermophilus[orgn] ferritin) record_parser = GenBank.RecordParser() ncbi_nuc_dict = GenBank.NCBIDictionary(database='nucleotide', format='genbank', parser=record_parser) record1 = ncbi_nuc_dict[gi_list[0]] print record1.sequence print record1.comment ...but there are lots of other functions for manipulating dna, rna, and protein sequences, dealing with hidden markov models, 3D protein databases and files, scoring matrices, neural networks, coalescence... If that's not sufficient let me know. -MH On Dec 13, 7:03 pm, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 4:27 PM, Marshall Hampton [EMAIL PROTECTED] wrote: Excellent! Thank you! The only problem you might run into is if the optional biopython package is somehow not relocatable, which would be a bug you should report here. By the way, could you describe from a sage point of view just what Biopython is. It's something that takes only 15 seconds to install. What does it do, say in a paragraph or 2? William On Dec 13, 5:30 pm, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 2:10 PM, Marshall Hampton [EMAIL PROTECTED] wrote: The problem is that I am not the real administrator of the machines, this is a one time thing. The binaries appear to work, but now I need to install the biopython package, which for some reason needs gcc. So I plan on installing the xcode tools on one machine, and then copying the entire installation. Is that a bad idea? I don't care if its crude if it works. Ah ha!! You're in luck. Just build biopython and any other packages you want into a copy of sage, then do sage -bdist 2.8.15-hampton-version and wait about 5 minutes. Then SAGE_ROOT/dist/ will contain a tarball sage-2.8.15-hampton-version.tar.gz that is suitable for install on all the other machines, and contains all your optional packages. William -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---