[sage-support] Re: Line Plots
On Sep 14, 6:20 am, William Stein wst...@gmail.com wrote: On Sun, Sep 13, 2009 at 9:05 PM, Eric Jackson eric...@comcast.net wrote: Does sage have the capability of allowing the user to view x and y coordinates (x,y) by moving his/her cursor along the line created in a plot? Matlab and Microsoft Excel have a feature, that allow the user to view xy values as he/she moves their cursor along the line of a plot. In other words, the xy coordinates literally appear as the cursor is moved along the plot. Any help with this would be greatly appreciated. Thanks! Unfortunately, Sage doesn't *yet* have this capability. It will in the near future. Are you referring to the possibility of viewer='flot'? - kcrisman --~--~-~--~~~---~--~~ 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] server_pool problem.
Hi, something I do not understand. 0) I have 2 users: sage and sage1 (on the same machine). 1) Logged in as sage, I can do ssh sa...@localhost some_command without passwd (authorized_keys2 in ~sage1/.ssh) 2) Now I launch the notebook: notebook(address='',secure=True,port=8001,timeout=3600,ulimit='-v 5',accounts=True,server_pool=['sa...@localhost']) 3) With my browser I go to https://localhost:8001 Everything is, ok *and* I can log in the notebook. 4) The I try to create a Worsheet, and type x=2 Evaluate: Traceback (click to the left for traceback) ... IOError: [Errno 13] Permission denied: '/home/sage/.sage/sage_notebook/worksheets/tdumont/0/code/1.py' So I am trying to write in /home/sage, but as sage1...I understand this... But what should I do ? t.d. attachment: tdumont.vcf smime.p7s Description: S/MIME Cryptographic Signature
[sage-support] Re: Line Plots
On Mon, Sep 14, 2009 at 9:10 AM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: It will in the near future. Are you thinking of the matplotlib html5 canvas backend that is being developed? Or is there something else that you are doing? I'm going to do *something*. I think there are numerous ways to solve this problem if one tries hard. First I would do something with javascript and png's for complete compatibility with our existing infrastructure, but of course that's just one thing. William --~--~-~--~~~---~--~~ 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: Line Plots
William Stein wrote: On Mon, Sep 14, 2009 at 9:10 AM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: It will in the near future. Are you thinking of the matplotlib html5 canvas backend that is being developed? Or is there something else that you are doing? I'm going to do *something*. I think there are numerous ways to solve this problem if one tries hard. First I would do something with javascript and png's for complete compatibility with our existing infrastructure, but of course that's just one thing. Well, then just for reference, here is a recent matplotlib thread from someone working on an html5 canvas backend to matplotlib: http://sourceforge.net/mailarchive/forum.php?thread_name=6e8d907b0909012053s19e7c5fl29cdcd0e1fab1d50%40mail.gmail.comforum_name=matplotlib-devel They might be interested in collaborating, or motivated if they saw their work being used immediately. Of course, this doesn't address moderately old or dysfunctional browsers that don't have html5 canvas. Jason --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
Hi, On Tue, Sep 15, 2009 at 1:55 AM, Sand Wraith omegat...@gmail.com wrote: SNIP any suggestions?.. help please.. Maybe this FAQ would help: http://wiki.sagemath.org/faq#Otherquestions -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
On Mon, Sep 14, 2009 at 8:55 AM, Sand Wraith omegat...@gmail.com wrote: Hi all! I'am trying to use sage on ArchLinux server. There is not enough space on /home, so i create a directory /ubin/sage and unpack sage in there: drwxr-xr-x 3 operator users 4.0K 2009-09-14 22:33 sage then i'am trying to run make command, and of this it's output here: Machine: Linux heaviside 2.6.30-ARCH #1 SMP PREEMPT Mon Aug 17 18:04:53 CEST 2009 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux sage: polytopes_db-20080430 is already installed sage-spkg dsage-1.0.1.p0 21 You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. dsage-1.0.1.p0 Machine: Linux heaviside 2.6.30-ARCH #1 SMP PREEMPT Mon Aug 17 18:04:53 CEST 2009 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux sage: dsage-1.0.1.p0 is already installed cd /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux . local/bin/ sage-env cd local/bin/ ./sage-make_relative Making script relocatable make[1]: Leaving directory `/ubin/sage/sage-4.1.1-linux-Ubuntu_9.04- i686-Linux/spkg' real 0m11.046s user 0m4.976s sys 0m3.186s /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 869: 8932 Illegal instruction python $SAGE_ROOT/ devel/sage/doc/common/builder.py $@ And then sage won't run: $ ./sage -- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information. | -- The Sage install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 199: 8966 Illegal instruction sage-ipython $@ -i - any suggestions?.. help please.. You're trying to make a *binary*. First extract the *source code* from http://sagemath.org/src/ then type make. William --~--~-~--~~~---~--~~ 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] Building problems on ArchLinux
Hi all! I'am trying to use sage on ArchLinux server. There is not enough space on /home, so i create a directory /ubin/sage and unpack sage in there: drwxr-xr-x 3 operator users 4.0K 2009-09-14 22:33 sage then i'am trying to run make command, and of this it's output here: Machine: Linux heaviside 2.6.30-ARCH #1 SMP PREEMPT Mon Aug 17 18:04:53 CEST 2009 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux sage: polytopes_db-20080430 is already installed sage-spkg dsage-1.0.1.p0 21 You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. dsage-1.0.1.p0 Machine: Linux heaviside 2.6.30-ARCH #1 SMP PREEMPT Mon Aug 17 18:04:53 CEST 2009 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux sage: dsage-1.0.1.p0 is already installed cd /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux . local/bin/ sage-env cd local/bin/ ./sage-make_relative Making script relocatable make[1]: Leaving directory `/ubin/sage/sage-4.1.1-linux-Ubuntu_9.04- i686-Linux/spkg' real0m11.046s user0m4.976s sys 0m3.186s /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 869: 8932 Illegal instruction python $SAGE_ROOT/ devel/sage/doc/common/builder.py $@ And then sage won't run: $ ./sage -- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information.| -- The Sage install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. /ubin/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 199: 8966 Illegal instruction sage-ipython $@ -i - any suggestions?.. help please.. --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
CC Version gcc - v Using built-in specs. Target: i686-pc-linux- gnu Configured with: ../configure --prefix=/usr --enable-shared --enable- languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/ usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit -- disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable- clocale=gnu --disable-libstdcxx-pch --with- tune=generic Thread model: posix gcc version 4.4.1 (GCC) ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ... I guess i have got hardware problems with memory? On Sep 14, 4:00 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi, On Tue, Sep 15, 2009 at 1:55 AM, Sand Wraith omegat...@gmail.com wrote: SNIP any suggestions?.. help please.. Maybe this FAQ would help: http://wiki.sagemath.org/faq#Otherquestions -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: Plotting absolute value of a complex function
Thank you very much! In fact, that is all I need :-) Andi Walz On 12 Sep., 21:28, William Stein wst...@gmail.com wrote: On Sat, Sep 12, 2009 at 12:05 PM, Andi Walz andreas.ch.w...@googlemail.com wrote: Hi, I'm just new to SAGE and now trying to make a 2D-plot of the following kind plot( abs( exp( i*x ) ) ) but I don't get it working. I know that this kind of plot will be very boring, but that's just one try on my way further. The problem is, that everytime it ends up with an error message like Traceback (most recent call last): ... TypeError: float() argument must be a string or a number I was now sitting for hours and I have no idea how to fix it. Is there anyone to help me? Thanks! Andi You've discovered *two* bugs in plotting. A workaround for both bugs is to do the following, which works: sage: plot(lambda x: float(abs(exp(i*x))), xmin=1,xmax=2, ymin=0,ymax=1) I've reported these bugs here: http://trac.sagemath.org/sage_trac/ticket/6926 Thanks! William --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
Hi, On Tue, Sep 15, 2009 at 3:11 AM, Евгений omegat...@gmail.com wrote: SNIP I guess i have got hardware problems with memory? Compiling Sage is quite resource intensive. From the error message you posted, I guess it failed when you were trying to compile ATLAS. What's the amount of RAM you have? The FAQ has some tips on compiling Sage on systems with limited resources. They're at http://wiki.sagemath.org/faq#Otherquestions in response to the question When I compile Sage my computer beeps and shuts down or hangs.. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: question about using Sage with Pydev
Hi, I've been trying to get Sage to work with Eclipse/Pydev. When I run it using python on the command prompt, it seems to work. Hi, i have Eclipse 3.4.2 and Pydev version 1.4.8.2881 and it works with sage 4.1.1 In the Preferences-Pydev-Interpreter the Environment vars should be set, but i also had to set the python interpreter to .../sage-4.1.1/ local/bin/python. Cheers, Niels --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
Hi, On Tue, Sep 15, 2009 at 3:11 AM, Евгений omegat...@gmail.com wrote: CC Version gcc - v Using built-in specs. Target: i686-pc-linux- gnu Configured with: ../configure --prefix=/usr --enable-shared --enable- languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/ usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit -- disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable- clocale=gnu --disable-libstdcxx-pch --with- tune=generic Thread model: posix gcc version 4.4.1 (GCC) ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory So with GCC 4.4.1 on Arch Linux, compiling results in out of memory errors. A similar problem has been reported before on a pre-release of Ubuntu 9.10 and Fedora 11. See these threads: http://groups.google.com/group/sage-devel/browse_thread/thread/eb1ce062cb8b206d/a5ac94ac8745df07 http://groups.google.com/group/sage-devel/browse_thread/thread/2ea99a973a54581c/41944cbfee79bcf8 In both of those cases, the compilation failed due to a bug in GCC 4.4.1 when compiling Pari. The problem has been reported upstream on the GCC bug tracking system; Ubuntu has fixed this GCC bug as well. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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] command line matplotlib/scipy/numpy on Mac
I have been using Enthought to use the scipy/numpy/matplotlib. But it is compiled as 32 bit for the Mac. Someone suggested I use Sage from the command line as it is compiled 64-bit for the Mac. I am running it as: env PYTHONPATH=$PYTHONPATH:/Applications/sage/local/lib/python2.6/site- packages DYLD_LIBRARY_PATH=/Applications/sage/local/lib: $DYLD_LIBRARY_PATH PATH=/Applications/sage/local/bin:$PATH local/bin/ ipython This gives me a prompt (and is 64 bit), but I can't do any plotting via matplotlib. The error is: ImportError: cannot import name _macosx WARNING: Loading of matplotlib.pylab failed. The backend_macosx.py exists but _macosx.{py,pyc,so} do not exist. Any idea how I could get this going? 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: Building problems on ArchLinux
May be i can downgrade gcc, but to what version? On Sep 14, 5:26 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi, On Tue, Sep 15, 2009 at 3:11 AM, Евгений omegat...@gmail.com wrote: CC Version gcc - v Using built-in specs. Target: i686-pc-linux- gnu Configured with: ../configure --prefix=/usr --enable-shared --enable- languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/ usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit -- disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable- clocale=gnu --disable-libstdcxx-pch --with- tune=generic Thread model: posix gcc version 4.4.1 (GCC) ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory ./configure.lineno: fork: Cannot allocate memory So with GCC 4.4.1 on Arch Linux, compiling results in out of memory errors. A similar problem has been reported before on a pre-release of Ubuntu 9.10 and Fedora 11. See these threads: http://groups.google.com/group/sage-devel/browse_thread/thread/eb1ce0...http://groups.google.com/group/sage-devel/browse_thread/thread/2ea99a... In both of those cases, the compilation failed due to a bug in GCC 4.4.1 when compiling Pari. The problem has been reported upstream on the GCC bug tracking system; Ubuntu has fixed this GCC bug as well. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: Building problems on ArchLinux
On Tue, Sep 15, 2009 at 3:40 AM, Евгений omegat...@gmail.com wrote: May be i can downgrade gcc, but to what version? The GCC bug was reported to take effect when compiling Pari. I don't even know if the compilation failed for you when you were compiling Pari. Before upgrading your GCC version, try the tips I mentioned on the FAQ. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: command line matplotlib/scipy/numpy on Mac
On Mon, Sep 14, 2009 at 10:29 AM, Craig Jones brech...@gmail.com wrote: I have been using Enthought to use the scipy/numpy/matplotlib. But it is compiled as 32 bit for the Mac. Someone suggested I use Sage from the command line as it is compiled 64-bit for the Mac. I am running it as: env PYTHONPATH=$PYTHONPATH:/Applications/sage/local/lib/python2.6/site- packages DYLD_LIBRARY_PATH=/Applications/sage/local/lib: $DYLD_LIBRARY_PATH PATH=/Applications/sage/local/bin:$PATH local/bin/ ipython This gives me a prompt (and is 64 bit), but I can't do any plotting via matplotlib. The error is: ImportError: cannot import name _macosx WARNING: Loading of matplotlib.pylab failed. The backend_macosx.py exists but _macosx.{py,pyc,so} do not exist. Any idea how I could get this going? (1) You should just do sage -ipython (2) Unfortunately we currently don't build Python as a Framework build on OS X, so the GUI interface doesn't work, though you can still create plots and save them in any other format (png, eps, etc.), which is what we do in the sage notebook. This will change, since building Python as a Framework build is also important for fully Mayavi support, which we very much want. William --~--~-~--~~~---~--~~ 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: eval(string)
Robert, Can I use your technique above to input this string? The [5]*3 gives me a problem L1=[3,10,15,23,25,30,3,[5]*3] On Sep 10, 1:56 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Sep 10, 2009, at 12:24 PM, Robert Bradshaw wrote: On Sep 9, 2009, at 9:01 AM, Tim Dumol wrote: `eval(the_string, globals = {__builtins__:None}, locals = {})` should do it. This removes access from all functions. Add any functions that are needed by adding them to the locals dictionary. As stated in:http://stackoverflow.com/questions/661084/security-of- pythons-eval-on-untrusted-strings andhttp://lybniz2.sourceforge.net/safeeval.html Wow, this works, though for much deeper reasons than those given above. sage: [].__class__.__subclasses__()[2].is_mutable.__func__.__globals__ ['__builtins__'] {'ArithmeticError': type 'exceptions.ArithmeticError', ... 'zip': built-in function zip} sage: eval([].__class__.__subclasses__() [2].is_mutable.__func__.__globals__['__builtins__'], {__builtins__:None}, {}) Traceback (most recent call last): File ipython console, line 1, in module File string, line 1, in module RuntimeError: restricted attribute Even sage: eval([].__class__.__subclasses__()[2]([]).save('foo.txt'), {__builtins__: None}, {}) Traceback (most recent call last): File ipython console, line 1, in module File string, line 1, in module File sage_object.pyx, line 150, in sage.structure.sage_object.SageObject.save (sage/structure/ sage_object.c:1894) IOError: file() constructor not accessible in restricted mode In short, if globals()['__builtins__'] != __builtins__ it runs in Restricted mode which disallows certain introspections and other operations. I don't know that it's bullet proof, but it looks pretty solid. A little googling yielded http://www.dalkescientific.com/writings/diary/archive/2008/03/03/ restricted_python.html which is one (of who knows how many) holes in restricted mode. - Robert- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] latex/jsmath error
Put from sage.misc.latex import JSMath into the notebook. Then %latex $x^2-x$ Then I get the following error An error occured. Error latexing slide. It is possible to do Latex in Sage? --~--~-~--~~~---~--~~ 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: latex/jsmath error
On Sep 14, 12:38 pm, Mikie thephantom6...@hotmail.com wrote: Put from sage.misc.latex import JSMath Why? This is imported into the notebook by default, so you don't need to do this. into the notebook. Then %latex $x^2-x$ Then I get the following error An error occured. Error latexing slide. I don't get an error -- I get nicely typeset latex output (on my Mac with Safari or Firefox, on an ubuntu box with Firefox, and on sagenb.org). What version of Sage, what OS, what browser are you using? You could also try %latex_debug $x^2-x$ Maybe it's a problem with your LaTeX installation, and %latex_debug will print extra debugging information. --~--~-~--~~~---~--~~ 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] Older version of sage.
Hi all! Where can i get older version of sage? Regards, John. --~--~-~--~~~---~--~~ 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: Older version of sage.
Hi John, On Tue, Sep 15, 2009 at 6:12 AM, Jerome North northjer...@gmail.com wrote: Hi all! Where can i get older version of sage? Only source tarballs of older versions are available. You can get them at http://www.sagemath.org/src-old/ -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: latex/jsmath error
This is from debug cd /root/.sage/temp/Ralph/5161/dir_1 sage-native-execute latex \\nonstopmode \\input{sage8.tex} sage-native-execute dvips sage8.dvi sage-native-execute convert -density 130x130 -trim sage8.ps sage8.png /var/www/html/sage/local/bin/sage-native-execute: line 8: latex: command not found An error occured. Error latexing slide. Using Firefox. Sage Version 3.2. On Sep 14, 2:02 pm, John H Palmieri jhpalmier...@gmail.com wrote: On Sep 14, 12:38 pm, Mikie thephantom6...@hotmail.com wrote: Put from sage.misc.latex import JSMath Why? This is imported into the notebook by default, so you don't need to do this. into the notebook. Then %latex $x^2-x$ Then I get the following error An error occured. Error latexing slide. I don't get an error -- I get nicely typeset latex output (on my Mac with Safari or Firefox, on an ubuntu box with Firefox, and on sagenb.org). What version of Sage, what OS, what browser are you using? You could also try %latex_debug $x^2-x$ Maybe it's a problem with your LaTeX installation, and %latex_debug will print extra debugging information. --~--~-~--~~~---~--~~ 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: Line Plots
I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. As far as what I'm doing, I've created a plot of a function, say sin (t) that is evaluated from t, -2*pi,2*pi. As I am viewing the plot, I would like to move my cursor along the sin(t) curve and in real time see what the xy coordinates are at various locations on the curve. Eric On Sep 14, 9:10 am, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: It will in the near future. Are you thinking of the matplotlib html5 canvas backend that is being developed? Or is there something else that you are doing? Jason --~--~-~--~~~---~--~~ 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: latex/jsmath error
Hi, On Tue, Sep 15, 2009 at 6:21 AM, Mikie thephantom6...@hotmail.com wrote: This is from debug cd /root/.sage/temp/Ralph/5161/dir_1 sage-native-execute latex \\nonstopmode \\input{sage8.tex} sage-native-execute dvips sage8.dvi sage-native-execute convert -density 130x130 -trim sage8.ps sage8.png /var/www/html/sage/local/bin/sage-native-execute: line 8: latex: command not found If you don't have dvips installed, you need to install that. If you're using Linux, make sure that you have a LaTeX distribution installed, i.e. texlive. From the look of the error message, I think the actual problem is that you haven't installed ImageMagick. The command convert is part of ImageMagick. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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: Line Plots
Eric Jackson wrote: I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. It's not finished. Here is a demo of what gnuplot can do with an html5 canvas backend: http://gnuplot.sourceforge.net/demo_canvas/ (notice the coordinates at the bottom of the plot). Jason --~--~-~--~~~---~--~~ 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: latex/jsmath error
On Sep 14, 1:21 pm, Mikie thephantom6...@hotmail.com wrote: Sage Version 3.2. This is almost a year old, which is getting pretty old, especially given the fast pace of Sage development. Later versions of Sage should give better error messages if convert (from the ImageMagick suite) and/or dvipng are not installed. At least one of these is necessary for getting latex output in the notebook. You might consider upgrading or asking your sysadmin to upgrade. John --~--~-~--~~~---~--~~ 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] how to get syntax highlightning to work for Sage in KDE
After a fair bit of looking, I have not been able to find any way for Python IDEs to work with .sage files. (Let alone integrating the Sage engine.) This strikes me as an incredibly important problem. (My apologies if there is some approach I've overlooked.) While obviously not a perfect solution, I've worked out how to get syntax highlightning for Sage in Kate, the KDE editor. (I personally have little experience with Gnome.) I wanted to mention how I did this in case it helps anyone else. (I'm using Kde 4.2 and Kate 3.2) Download the file www.cs.uwaterloo.ca/~ggdhines/sage.xml into the directory ~/.kde/share/apps/katepart/syntax/ or the global directory $(PREFIX)/share/apps/katepart/syntax/ You may need to restart Kate after doing this. You can now choose Sage highlightning from tools-Highlightning-Scripts To avoid having to do this every time, you can set this up to be the default highlightning for Sage files by doing the following: Go into configure Kate and choose open/save under editor component and then modes filetypes. Create a new file type scripts/sage and under variables enter kate: presave-postdialog python-encoding For highlightning, choose Sage and file extension choose *.sage and then enter apply/ok BTW the sage.xml file was copied completely from the python.xml file. I haven't made any changes so this will probably not be perfect. I welcome any suggestions but I'm busy enough right now that I will have little if any time to make other improvements. I hope this helps, Greg --~--~-~--~~~---~--~~ 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: question about using Sage with Pydev
Does that provide all of the Sage functionality ? Greg On Sep 14, 12:28 pm, niels niels.lub...@gmail.com wrote: Hi, I've been trying to get Sage to work with Eclipse/Pydev. When I run it using python on the command prompt, it seems to work. Hi, i have Eclipse 3.4.2 and Pydev version 1.4.8.2881 and it works with sage 4.1.1 In the Preferences-Pydev-Interpreter the Environment vars should be set, but i also had to set the python interpreter to .../sage-4.1.1/ local/bin/python. Cheers, Niels --~--~-~--~~~---~--~~ 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] 3d axes seem off
I can't make sense of the numbers on the bounding box of this 3d plot: points([(0,0,0), (1, 1, 1), (3, 0.5, -2)]) The y-axis looks okay, and is labeled 0, 0.5, 1. The z-axis is labeled 1, -0, -2, with all numbers equally spaced. The x-axis is labeled 0, 2, 3, again, with equally-spaced numbers. Also, the origin point doesn't appear to be at (0,0,0). Does anyone know what is going on? Thanks, Jason -- 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] Re: Line Plots
On Mon, Sep 14, 2009 at 1:26 PM, Eric Jackson eric...@comcast.net wrote: I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. As far as what I'm doing, I've created a plot of a function, say sin (t) that is evaluated from t, -2*pi,2*pi. As I am viewing the plot, I would like to move my cursor along the sin(t) curve and in real time see what the xy coordinates are at various locations on the curve. Eric I think the easiest way to do this would be with javascript, and a careful knowledge of how matplotlib coordinates correspond to png image coordinates. William --~--~-~--~~~---~--~~ 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: latex/jsmath error
On Mon, Sep 14, 2009 at 1:21 PM, Mikie thephantom6...@hotmail.com wrote: This is from debug cd /root/.sage/temp/Ralph/5161/dir_1 sage-native-execute latex \\nonstopmode \\input{sage8.tex} sage-native-execute dvips sage8.dvi sage-native-execute convert -density 130x130 -trim sage8.ps sage8.png /var/www/html/sage/local/bin/sage-native-execute: line 8: latex: command not found You need to install latex. William --~--~-~--~~~---~--~~ 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: Line Plots
William Stein wrote: On Mon, Sep 14, 2009 at 1:26 PM, Eric Jackson eric...@comcast.net wrote: I'm not thinking of matplotlib html5. However, I am fairly new to working with Sage. I will do some research to see what matplotlib html5 is about. As far as what I'm doing, I've created a plot of a function, say sin (t) that is evaluated from t, -2*pi,2*pi. As I am viewing the plot, I would like to move my cursor along the sin(t) curve and in real time see what the xy coordinates are at various locations on the curve. Eric I think the easiest way to do this would be with javascript, and a careful knowledge of how matplotlib coordinates correspond to png image coordinates. You can get the transform that describes the display pixel - data coordinates straight from matplotlib. We could ship that to the browser with the plot, then the browser could do the matrix multiplication on its own. See http://matplotlib.sourceforge.net/users/transforms_tutorial.html In particular, You can use the inverted() method to create a transform which will take you from display to data coordinates: In [41]: inv = ax.transData.inverted() In [42]: type(inv) Out[42]: class 'matplotlib.transforms.CompositeGenericTransform' In [43]: inv.transform((335.175, 247.)) Out[43]: array([ 5., 0.]) It would also be useful to peruse the definition of the transformation pipeline: http://matplotlib.sourceforge.net/users/transforms_tutorial.html#the-transformation-pipeline Jason -- 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] Re: eval(string)
On Sep 14, 2009, at 12:09 PM, Mikie wrote: Robert, Can I use your technique above to input this string? The [5]*3 gives me a problem L1=[3,10,15,23,25,30,3,[5]*3] You can, but here you're getting to the point where you're allowing arbitrary input, not just a list of integers. What about [1, 2, 3, [4]*(130)]? How much memory do you have on your machine? - Robert On Sep 10, 1:56 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Sep 10, 2009, at 12:24 PM, Robert Bradshaw wrote: On Sep 9, 2009, at 9:01 AM, Tim Dumol wrote: `eval(the_string, globals = {__builtins__:None}, locals = {})` should do it. This removes access from all functions. Add any functions that are needed by adding them to the locals dictionary. As stated in:http://stackoverflow.com/questions/661084/security-of- pythons-eval-on-untrusted-strings andhttp://lybniz2.sourceforge.net/safeeval.html Wow, this works, though for much deeper reasons than those given above. sage: [].__class__.__subclasses__() [2].is_mutable.__func__.__globals__ ['__builtins__'] {'ArithmeticError': type 'exceptions.ArithmeticError', ... 'zip': built-in function zip} sage: eval([].__class__.__subclasses__() [2].is_mutable.__func__.__globals__['__builtins__'], {__builtins__:None}, {}) Traceback (most recent call last): File ipython console, line 1, in module File string, line 1, in module RuntimeError: restricted attribute Even sage: eval([].__class__.__subclasses__()[2]([]).save('foo.txt'), {__builtins__: None}, {}) Traceback (most recent call last): File ipython console, line 1, in module File string, line 1, in module File sage_object.pyx, line 150, in sage.structure.sage_object.SageObject.save (sage/structure/ sage_object.c:1894) IOError: file() constructor not accessible in restricted mode In short, if globals()['__builtins__'] != __builtins__ it runs in Restricted mode which disallows certain introspections and other operations. I don't know that it's bullet proof, but it looks pretty solid. A little googling yielded http://www.dalkescientific.com/writings/diary/archive/2008/03/03/ restricted_python.html which is one (of who knows how many) holes in restricted mode. - Robert- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: 3d axes seem off
Jason Grout wrote: I can't make sense of the numbers on the bounding box of this 3d plot: points([(0,0,0), (1, 1, 1), (3, 0.5, -2)]) The y-axis looks okay, and is labeled 0, 0.5, 1. The z-axis is labeled 1, -0, -2, with all numbers equally spaced. The x-axis is labeled 0, 2, 3, again, with equally-spaced numbers. Also, the origin point doesn't appear to be at (0,0,0). Does anyone know what is going on? Okay, the problem was that the frame labels were printing with 0 digits after the decimal since the axes range was over 2.0. I put up a one-character patch which changes this to printing 1 digit after the decimal, which makes the plot look all right (well, at least the frame labels make sense now!). Hopefully this will be a 2-second review for someone: http://trac.sagemath.org/sage_trac/ticket/6930 Jason -- 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 -~--~~~~--~~--~--~---