Re: [sage-support] Where are the environment variables in Sage.
Hi Jose, On Tue, Aug 9, 2011 at 5:21 PM, Jose Guzmansjm.guz...@googlemail.com wrote: I would like to change my $SAGE_BROWSER environment variable but do not know where it is. Where are the environment variables ? See this thread: http://groups.google.com/group/sage-support/browse_thread/thread/a2fac6ef05e24074 would it be nice to have this question in the Sage FAQ? (see ticket #8464) Yes, you're right. Would you like to open a ticket and post a patch? I promise to review the patch. Here we go!!!: ticket #11675. It took me a little bit, I wanted to be sure to follow strictly the devel-doc . It is my first patch, I hope everything was appropriate. @John: I was not aware of the Sage installation guide. I added a link to that page in the FAQ as well. Thanks a lot for your help! Jose -- 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 URL: http://www.sagemath.org
[sage-support] ode_solver in cython
Hi, I am not able to understand why the following should not work (in notebook) - cell 1 ## %cython from sage.all import ode_solver, random cdef class A: cdef double mu def __init__(self, double mu=1.): self.mu = mu def func(self, x): return self.mu*x[0], self.mu*x[1] def func1(): a = A() trajectory = ode_solver() trajectory.algorithm = rkf45 trajectory.function = lambda t, y: a.func(y) trajectory.ode_solve(y_0=[random(), random()], t_span=[0,10], num_points=100) u1 = trajectory.interpolate_solution(0) return u1 ## end of cell 1 ### This compiles without any problem, but when I do - cell 2 ## u1 = func1() plot(u1, (0,10)) ## end of cell 2 ### I get the following error - TypeError: arg is not a Python function If I define func1 outside the cython cell then everything works fine. This is just a toy problem but captures the behavior I encountered. I hope someone can explain. Rajeev -- 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 URL: http://www.sagemath.org
[sage-support] polygon fill attribute
Hello, -- P = polygon([[1,2], [5,6], [5,0]], fill = False, color='red') P -- still fills the polygon, is there another way to turn off color fill. Thanks. -Giri -- 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 URL: http://www.sagemath.org
[sage-support] how to unpublish a worksheet
Hi Is there a way to unpublish a (already-published) worksheet? I found these: http://trac.sagemath.org/sage_trac/ticket/3156 http://trac.sagemath.org/sage_trac/ticket/3240 but was not able to find the mentioned stop publishing button in my Sage-4.7 installation (compiled from source, on CentOS 6.0 Linux). Thanks, Shao-Ching -- 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 URL: http://www.sagemath.org
[sage-support] Re: polygon fill attribute
Yes, this is not working because we didn't enable it. Ticket and fix coming up. - kcrisman On Aug 10, 8:00 pm, Giri Narayanan giri@gmail.com wrote: Hello, --- --- P = polygon([[1,2], [5,6], [5,0]], fill = False, color='red') P --- --- still fills the polygon, is there another way to turn off color fill. Thanks. -Giri -- 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 URL: http://www.sagemath.org
[sage-support] Re: polygon fill attribute
On Aug 10, 9:18 pm, kcrisman kcris...@gmail.com wrote: Yes, this is not working because we didn't enable it. Ticket and fix coming up. - kcrisman This is now http://trac.sagemath.org/sage_trac/ticket/11677 . The fix is there, but I didn't have the chance to make an actual patch you could apply. Hopefully this will happen, it will get reviewed, and be in Sage 4.7.2! - 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 URL: http://www.sagemath.org
[sage-support] Maintain order of symbols in show() or view()
Hi, I was wondering if it is possible to maintain the order of symbols in the output of show() or view() as inputted. For example, if I do show(1-alpha) then I get latex output of -alpha + 1, instead of latex output of 1 - alpha. It would be great if there is a way to suppress this. Thank you, Joon -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- 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 URL: http://www.sagemath.org