[sage-support] using Matplotlib and sagetex

2008-12-01 Thread Adam Webb
Hi, I would like to add plots to a document using sagetex and my script uses matplotlib to generate the plot. Is it possible to matplotlib with sagetex? I understand that /sageplot{} wants a graphics obj with a .save method. However, I have not found how to generate such an object. For example

[sage-support] Re: prevent complex numbers ?

2008-12-01 Thread [EMAIL PROTECTED]
On Nov 28, 1:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Nov 28, 9:14 am, Robert Bradshaw [EMAIL PROTECTED] wrote: On Nov 27, 2008, at 6:58 AM, [EMAIL PROTECTED] wrote: Hello, the example below shows that a complex number ( i think the I stands for it ? ) appears by

[sage-support] Plot axis tick interval

2008-12-01 Thread exty
Hi, How can I change the distance between axis ticks when plotting in the notebook. I want to plot a simple 2d graph where the tick interval would be an integer, eg. 1. For example: p = plot(sin, [-10, 10]) p.axes_range(-10, 10, -10, 10) Currently this will result in a plot where the interval

[sage-support] Re: jsMath issue and solution with error code -7

2008-12-01 Thread dpvc
The real problem is not the missing fonts, but the fact that sage doesn't include the jsMath image fonts that are supposed to be used when the jsMath TeX fonts aren't available. I'm sure this was not included because it was considered to be too large a component, but it really should be, as it

[sage-support] Re: Doc-testing cdef'd methods

2008-12-01 Thread Jason Grout
Simon King wrote: Dear Robert, On Nov 29, 7:43 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: You can't call cdef functions from the Python interpreter. You can write a test function, e.g. _test_mulint. Good idea! On the other hand, after writing I wouldn't like to make the method

[sage-support] Re: JsMath issue

2008-12-01 Thread Jason Grout
Stan Schymanski wrote: Just search for jsMath failed to set up in the sage-support forum and you find out what to do (need to install the tex fonts from jsMath). Many people had this problem and I believe that the solution is being incorporated into the documentation. It's also been in the

[sage-support] Re: Editing html on notebooks

2008-12-01 Thread Jason Grout
Marshall Hampton wrote: There has been some work on this recently, by Jason Grout, on adding the tinyMCE editor to the notebook. The idea is that a shift-click will create a html block that can be edited by tinyMCE. Unfortunately at the moment that feature addition is somewhat

[sage-support] Re: jsMath issue and solution with error code -7

2008-12-01 Thread Jason Grout
dpvc wrote: The real problem is not the missing fonts, but the fact that sage doesn't include the jsMath image fonts that are supposed to be used when the jsMath TeX fonts aren't available. I'm sure this was not included because it was considered to be too large a component, but it really

[sage-support] Re: Editing html on notebooks

2008-12-01 Thread Flavio Coelho
Thanks for the reply. that is exactly the feunctionality I was hoping for! On 30 nov, 14:19, Marshall Hampton [EMAIL PROTECTED] wrote: There has been some work on this recently, by Jason Grout, on adding the tinyMCE editor to the notebook.  The idea is that a shift-click will create a html

[sage-support] Re: JsMath issue

2008-12-01 Thread M. Yurko
Thanks for your responses. The reason that I didn't install the extra Tex fonts explicitly is because I thought that the jsmath-fonts package contained them already, however, I'll try and explicitly download them into that directory. On Dec 1, 11:00 am, Jason Grout [EMAIL PROTECTED] wrote: Stan

[sage-support] Re: Sage 3.2 released

2008-12-01 Thread Jim Clark
On Nov 30, 2008, at 3:34 PM, mabshoff wrote: On Nov 30, 1:58 pm, Jim Clark [EMAIL PROTECTED] wrote: I am puzzled by one of the binaries:http://sage.math.washington.edu/ sage/osx/powerpc/sage-3.2-G5-PowerMacintosh-Darwin.dmg Does the G5 in the name mean it's specific for the G5 processor?

[sage-support] Where may that segfault come from?

2008-12-01 Thread Simon King
Dear Sage support, since a couple of hours I am fighting with a segmentation fault in a Cython module. Can you help me? I can boil it down to the following files: 1. Ccrash.h: typedef unsigned char FEL; typedef FEL *PTR; typedef struct { long i; long m; } piv_t; piv_t *_zfindpiv_(PTR row);

[sage-support] Re: Where may that segfault come from?

2008-12-01 Thread Justin C. Walker
On Dec 1, 2008, at 10:13 AM, Simon King wrote: since a couple of hours I am fighting with a segmentation fault in a Cython module. Can you help me? I can boil it down to the following files: [snip] I made a Crash.so, precisely: sage -cython Crash.pyx gcc -c -fPIC

[sage-support] Re: Doc-testing cdef'd methods

2008-12-01 Thread Craig Citro
Question for all: is there a good reason for writing cdef functions? Or should we make all cython functions cpdef? Python convention seems to be to expose the internals of the class, but just mark (with _ or __) the functions that are considered internal and may change without warning.

[sage-support] Re: Where may that segfault come from?

2008-12-01 Thread Simon King
Dear Justin, On Dec 1, 7:51 pm, Justin C. Walker [EMAIL PROTECTED] wrote: This is probably a stupid question, but did where you create Ccrash.o? The cython step creates Ccrash.c, and you don't show where you compile it. Sorry, that was just a cut-and-paste error in my post. Before

[sage-support] Re: Where may that segfault come from?

2008-12-01 Thread Jason Grout
Simon King wrote: Dear Sage support, since a couple of hours I am fighting with a segmentation fault in a Cython module. Can you help me? I can boil it down to the following files: 1. Ccrash.h: typedef unsigned char FEL; typedef FEL *PTR; typedef struct { long i; long m; }

[sage-support] Re: Where may that segfault come from?

2008-12-01 Thread Simon King
Dear Jason On Dec 1, 9:24 pm, Jason Grout [EMAIL PROTECTED] wrote: It looks like you are never allocating the actual piv_t struct that P is supposed to point to. You are just creating the pointer P and then assigning directly to it. Yes, I think you're right. Thank you! And sorry that by

[sage-support] wiki ban?

2008-12-01 Thread kcrisman
Upon following a routine link from sagemath.org: Warning: You triggered the wiki's surge protection by doing too many requests in a short time. Please make a short break reading the stuff you already got. When you restart doing requests AFTER that, slow down or you might get locked out for a

[sage-support] Re: wiki ban?

2008-12-01 Thread Minh Nguyen
On Tue, Dec 2, 2008 at 8:41 AM, kcrisman [EMAIL PROTECTED] wrote: Upon following a routine link from sagemath.org: Warning: You triggered the wiki's surge protection by doing too many requests in a short time. Please make a short break reading the stuff you already got. When you restart

[sage-support] Re: wiki ban?

2008-12-01 Thread Timothy Clemans
I'm seeing this too. On Mon, Dec 1, 2008 at 5:07 PM, Minh Nguyen [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 8:41 AM, kcrisman [EMAIL PROTECTED] wrote: Upon following a routine link from sagemath.org: Warning: You triggered the wiki's surge protection by doing too many requests in a

[sage-support] Re: wiki ban?

2008-12-01 Thread William Stein
Hi, Try using http://sagemath.org:9001/ and let me know if that helps. On Mon, Dec 1, 2008 at 2:12 PM, Timothy Clemans [EMAIL PROTECTED] wrote: I'm seeing this too. On Mon, Dec 1, 2008 at 5:07 PM, Minh Nguyen [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 8:41 AM, kcrisman [EMAIL

[sage-support] Re: wiki ban?

2008-12-01 Thread mabshoff
On Dec 1, 2:32 pm, William Stein [EMAIL PROTECTED] wrote: Hi, Try usinghttp://sagemath.org:9001/and let me know if that helps. Yep, that should generally work. It will bypass the problem since IP surge protection is on a per IP base and www.sagemath.org only sees on IP due to the

[sage-support] Re: wiki ban?

2008-12-01 Thread Minh Nguyen
On Tue, Dec 2, 2008 at 9:32 AM, William Stein [EMAIL PROTECTED] wrote: Hi, Try using http://sagemath.org:9001/ and let me know if that helps. Thanks, William. It works for me. I can now visit the wiki as well as edit pages. -- Regards Minh Van Nguyen Web:

[sage-support] Re: wiki ban?

2008-12-01 Thread Jason Grout
mabshoff wrote: On Dec 1, 2:32 pm, William Stein [EMAIL PROTECTED] wrote: Hi, Try usinghttp://sagemath.org:9001/and let me know if that helps. Yep, that should generally work. It will bypass the problem since IP surge protection is on a per IP base and www.sagemath.org only sees on

[sage-support] Re: wiki ban?

2008-12-01 Thread William Stein
On Mon, Dec 1, 2008 at 3:05 PM, Jason Grout [EMAIL PROTECTED] wrote: mabshoff wrote: On Dec 1, 2:32 pm, William Stein [EMAIL PROTECTED] wrote: Hi, Try usinghttp://sagemath.org:9001/and let me know if that helps. Yep, that should generally work. It will bypass the problem since IP surge

[sage-support] Re: prevent complex numbers ?

2008-12-01 Thread Robert Bradshaw
On Dec 1, 2008, at 5:11 AM, Stan Schymanski wrote: Hi Robert, I wasn't aware of the real() function; pretty cool. I tried it out myself in the above example and found an error. Not sure whether this is an error in the real() function or in simplify_full. I suspect the latter. Could you

[sage-support] Re: Sage 3.2 released

2008-12-01 Thread mabshoff
On Dec 1, 10:09 am, Jim Clark [EMAIL PROTECTED] wrote: SNIP Hi Jim, That is an OSX 10.4 binary build on a G4. I am not 100% sure if it will be running on a G4. That G5 is the only 10.4 box we have access to 24/7 and it is also substantially faster (and has multiple CPUs) than any G4.