Re: [sage-support] Re: Mixing tab and spaces on the LiveCD
then you could remaster the live CD image (maybe make some additional changes like a customized default wallpaper or even include some example worksheets) before you distribute it. I made a guide how to do this here: http://boxen.math.washington.edu/home/emil/doc/html/en/HOWTO-Advanced_Setup.html#Remaster_the_Live_CD_ Thanks, I'll do that next time. Laurent -- 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: sagenb issues
On 26 Okt., 17:47, William Stein wst...@gmail.com wrote: Of possible relevance is that the machine that sagenb is running on is heavily loaded right now, due to me upgrading the system-wide Sage install on that machine, and building in parallel. FWIW, slightly off-topic: Setting MAKE to make -jN when (re-)building Sage doesn't limit the *total* number of build jobs to N; it's usually better to also use '- lM' [1], where M is a floating-point number, telling 'make' to not spawn further jobs if the (total) system load exceeds M. This is especially useful if you already have other programs / processes running which significantly consume CPU time and / or RAM, or shouldn't suffer from too high load. (RAM is certainly not an issue on mod, but If you choose N too large without limiting the max. sysload, you may also quickly run out of physical memory, such that the machine starts swapping, which of course slows down the build process or may even freeze your machine [at least for a while].) [I'm not sure whether that's mentioned anywhere in the Sage documentation, but rather doubt it is.] -leif [1] http://www.gnu.org/software/make/manual/make.html#Options-Summary -- 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: sagenb issues
On Thursday, October 27, 2011 11:01:19 AM UTC-4, leif wrote: On 26 Okt., 17:47, William Stein wst...@gmail.com wrote: Setting MAKE to make -jN when (re-)building Sage doesn't limit the *total* number of build jobs to N; It does limit the total number of build jobs within the current make. Of course it doesn't take into account make jobs that are run by different users, that run on different computers, that were invoked at a different time, etc. -- 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: sagenb issues
On Oct 26, 4:47 pm, William Stein wst...@gmail.com wrote: On Wed, Oct 26, 2011 at 8:44 AM, MichTex bill.cav...@gmail.com wrote: I have been using sagenb without difficulty now for several days. I've been using it again this morning, but just now I started getting the 'could not connect towww.sagenb.org'message when I tried to save my worksheet. I tried opening another window to sagenb and got the same result. After a couple of minutes, the server finally responded to my first request. I then tried re-running the computation in the last cell that I had been working on. It did run, although very slowly. I have tried a couple of other things, and they were all very slow as well. I don't think it is a connection problem from my end. --Bill Cavnar Of possible relevance is that the machine that sagenb is running on is heavily loaded right now, due to me upgrading the system-wide Sage install on that machine, and building in parallel. This should be finished in a few minutes. William 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 athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org I'm currently getting the following message: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server when trying to log in. Sometimes I get the same message just by going to sagenb.org. Mark -- 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
Re: [sage-support] sagenb issues
On Thursday, October 27, 2011, Mark Florisson markflorisso...@gmail.com wrote: On Oct 26, 4:47 pm, William Stein wst...@gmail.com wrote: On Wed, Oct 26, 2011 at 8:44 AM, MichTex bill.cav...@gmail.com wrote: I have been using sagenb without difficulty now for several days. I've been using it again this morning, but just now I started getting the 'could not connect towww.sagenb.org'message when I tried to save my worksheet. I tried opening another window to sagenb and got the same result. After a couple of minutes, the server finally responded to my first request. I then tried re-running the computation in the last cell that I had been working on. It did run, although very slowly. I have tried a couple of other things, and they were all very slow as well. I don't think it is a connection problem from my end. --Bill Cavnar Of possible relevance is that the machine that sagenb is running on is heavily loaded right now, due to me upgrading the system-wide Sage install on that machine, and building in parallel. This should be finished in a few minutes. William 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 athttp:// groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org I'm currently getting the following message: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server when trying to log in. Sometimes I get the same message just by going to sagenb.org. That's probably because there are over 500 simultaneous open worksheets right now. I've reset the servers but it will probably get heavily loaded again soon enough. Obviously we need to start planning for the next level in scalability... Mark -- 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 -- William Stein 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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sagenb issues
On 27 October 2011 18:56, William Stein wst...@gmail.com wrote: On Thursday, October 27, 2011, Mark Florisson markflorisso...@gmail.com wrote: On Oct 26, 4:47 pm, William Stein wst...@gmail.com wrote: On Wed, Oct 26, 2011 at 8:44 AM, MichTex bill.cav...@gmail.com wrote: I have been using sagenb without difficulty now for several days. I've been using it again this morning, but just now I started getting the 'could not connect towww.sagenb.org'message when I tried to save my worksheet. I tried opening another window to sagenb and got the same result. After a couple of minutes, the server finally responded to my first request. I then tried re-running the computation in the last cell that I had been working on. It did run, although very slowly. I have tried a couple of other things, and they were all very slow as well. I don't think it is a connection problem from my end. --Bill Cavnar Of possible relevance is that the machine that sagenb is running on is heavily loaded right now, due to me upgrading the system-wide Sage install on that machine, and building in parallel. This should be finished in a few minutes. William 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 athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org I'm currently getting the following message: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server when trying to log in. Sometimes I get the same message just by going to sagenb.org. That's probably because there are over 500 simultaneous open worksheets right now. I've reset the servers but it will probably get heavily loaded again soon enough. Obviously we need to start planning for the next level in scalability... Great, thanks. I just wanted to download my worksheets which I need for tomorrow :) Mark -- 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 -- William Stein 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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- 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: sagenb issues
On 10/27/11 12:56 PM, William Stein wrote: That's probably because there are over 500 simultaneous open worksheets right now. I've reset the servers but it will probably get heavily loaded again soon enough. Obviously we need to start planning for the next level in scalability... I wonder if switching from the simple twistd server to, say, nginx serving flask, would help things in the short term. I notice that the sagenb.org process (given by the PID listed in the ./admin --status command) hovers around 50-70% CPU utilization. That seems like a lot. Thanks, 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 URL: http://www.sagemath.org
[sage-support] Help with programming symbolic expressions!
Hola! I experimented almost a complete day with the seemingly simple problem, I want to program a simple function, like: f(u,v)=\cases{ 2, if u=v, 0, else.} and similar functions. As I want tom do calculus, I need symbolic expressions, not Python functions. I tries using thing like step(x) = Piecewise([[(-infinity,0), lambda x : 0],[(0,infinity), lambda x : 1]],x) and then f(u,v) = step(u-v)*2 but it does not work. Ideas? Also, Any suggestions about where to read about such things? Kjetil -- If you want a picture of the future - imagine a boot stamping on the human face - forever. George Orwell (1984) -- 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: sagenb issues
That's probably because there are over 500 simultaneous open worksheets right now. I've reset the servers but it will probably get heavily loaded again soon enough. Obviously we need to start planning for the next level in scalability... I guess that's a good problem to have... I wonder if anyone noticed whether the other *.sagenb.org servers experienced slowdowns then. In the past (not counting Jason's upgrade attempt), slowdowns on sagenb.org did not seem to affect the others' performance. - 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] Re: sagenb issues
On 27 Okt., 19:12, Volker Braun vbraun.n...@gmail.com wrote: On Thursday, October 27, 2011 11:01:19 AM UTC-4, leif wrote: Setting MAKE to make -jN when (re-)building Sage doesn't limit the *total* number of build jobs to N; It does limit the total number of build jobs within the current make. Provided the communication to the jobserver (through inherited file descriptors, whose numbers are passed in MAKEFLAGS) isn't broken, which currently apparently isn't always the case during the build. Of course it doesn't take into account make jobs that are run by different users, that run on different computers, that were invoked at a different time, etc. :-) I thought the number referred to all simultaneous 'make' jobs in the Milky Way. -leif -- 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] Issues with assigning color values to multiple plots.
Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) -- 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: Issues with assigning color values to multiple plots.
On 10/27/11 6:51 PM, Eric Kangas wrote: Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Try something like: colors=rainbow(len([0,1,..3])) sum(plot(derivative((f(x), a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Make each curve an individual plot, and then sum them together. 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 URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
Well I should be more correct in what I am saying each function is the derivative of the one function. I tried your program but I get this error. Code: x = var('x') f = (sin(x))**3+(sin(x))**2+sin(x)+1 colors = rainbow(len([0,1,..3])) sum(plot(derivative((f, a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Error: Traceback (most recent call last): File stdin, line 1, in module File _sage_input_11.py, line 10, in module exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(eCA9IHZhcigneCcpCmYgPSAoc2luKHgpKSoqMysoc2luKHgpKSoqMitzaW4oeCkrMQpjb2xvcnMgPSByYWluYm93KGxlbihbMCwxLC4uM10pKQpzdW0ocGxvdChkZXJpdmF0aXZlKChmLCBhKSAsICh4LDAsMipwaSksIGNvbG9yID0gY29sb3JzW2ldLGxhYmVsPSJQbG90ICVkIiVpKSBmb3IgaSxhIGluIGVudW1lcmF0ZShbMCwxLC4uM10pKQ==),globals()) +\\n); execfile(os.path.abspath(___code___.py)) File , line 1, in module File /tmp/tmpchwgnX/___code___.py, line 7 ^ SyntaxError: invalid syntax Since it is a syntax error I think it is something simple that I am over looking. On Oct 27, 5:09 pm, Jason Grout jason-s...@creativetrax.com wrote: On 10/27/11 6:51 PM, Eric Kangas wrote: Hi, I am working on a standard plot function for multiple plots. I would like to have each plot in a different color to distinguish each function, and also able to show a legend with the color, and function. Here is what I have right now: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Try something like: colors=rainbow(len([0,1,..3])) sum(plot(derivative((f(x), a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Make each curve an individual plot, and then sum them together. 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 URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
On 10/27/11 8:25 PM, Eric Kangas wrote: Well I should be more correct in what I am saying each function is the derivative of the one function. I tried your program but I get this error. Code: x = var('x') f = (sin(x))**3+(sin(x))**2+sin(x)+1 colors = rainbow(len([0,1,..3])) sum(plot(derivative((f, a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Error: Traceback (most recent call last): File stdin, line 1, inmodule File _sage_input_11.py, line 10, inmodule exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(eCA9IHZhcigneCcpCmYgPSAoc2luKHgpKSoqMysoc2luKHgpKSoqMitzaW4oeCkrMQpjb2xvcnMgPSByYWluYm93KGxlbihbMCwxLC4uM10pKQpzdW0ocGxvdChkZXJpdmF0aXZlKChmLCBhKSAsICh4LDAsMipwaSksIGNvbG9yID0gY29sb3JzW2ldLGxhYmVsPSJQbG90ICVkIiVpKSBmb3IgaSxhIGluIGVudW1lcmF0ZShbMCwxLC4uM10pKQ==),globals()) +\\n); execfile(os.path.abspath(___code___.py)) File , line 1, inmodule File /tmp/tmpchwgnX/___code___.py, line 7 ^ SyntaxError: invalid syntax Since it is a syntax error I think it is something simple that I am over looking. If you click just to the left of the syntax error in the notebook, you'll see a more descriptive error message that tells where the error is. It looks like the problem is just that there was an extra parentheses: sum(plot(derivative(f, a) , (x,0,2*pi), color = colors[i],legend_label=Plot %d%i) for i,a in enumerate([0,1,..3])) 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 URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
thanks it works On Oct 27, 6:29 pm, Jason Grout jason-s...@creativetrax.com wrote: On 10/27/11 8:25 PM, Eric Kangas wrote: Well I should be more correct in what I am saying each function is the derivative of the one function. I tried your program but I get this error. Code: x = var('x') f = (sin(x))**3+(sin(x))**2+sin(x)+1 colors = rainbow(len([0,1,..3])) sum(plot(derivative((f, a) , (x,0,2*pi), color = colors[i],label=Plot %d%i) for i,a in enumerate([0,1,..3])) Error: Traceback (most recent call last): File stdin, line 1, inmodule File _sage_input_11.py, line 10, inmodule exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(eCA9IHZhcigneCcpCmYgPSAoc2luKHgpKSoqMysoc2luKHgpKSoqMitzaW4oeCkrMQpjb2xvcnMgPSByYWluYm93KGxlbihbMCwxLC4uM10pKQpzdW0ocGxvdChkZXJpdmF0aXZlKChmLCBhKSAsICh4LDAsMipwaSksIGNvbG9yID0gY29sb3JzW2ldLGxhYmVsPSJQbG90ICVkIiVpKSBmb3IgaSxhIGluIGVudW1lcmF0ZShbMCwxLC4uM10pKQ==),globals()) +\\n); execfile(os.path.abspath(___code___.py)) File , line 1, inmodule File /tmp/tmpchwgnX/___code___.py, line 7 ^ SyntaxError: invalid syntax Since it is a syntax error I think it is something simple that I am over looking. If you click just to the left of the syntax error in the notebook, you'll see a more descriptive error message that tells where the error is. It looks like the problem is just that there was an extra parentheses: sum(plot(derivative(f, a) , (x,0,2*pi), color = colors[i],legend_label=Plot %d%i) for i,a in enumerate([0,1,..3])) 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 URL: http://www.sagemath.org
[sage-support] Re: Issues with assigning color values to multiple plots.
On 28 Okt., 01:51, Eric Kangas eric.c.kan...@gmail.com wrote: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Just curious: Any reason to use [0,1,..3] instead of just [0..3] or even the pure Python syntax: range(4) ? -leif -- 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: Issues with assigning color values to multiple plots.
still new to sage noticed that most plots had that listed to show the intervals between the range. Thanks for the info. On Oct 27, 6:39 pm, leif not.rea...@online.de wrote: On 28 Okt., 01:51, Eric Kangas eric.c.kan...@gmail.com wrote: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Just curious: Any reason to use [0,1,..3] instead of just [0..3] or even the pure Python syntax: range(4) ? -leif -- 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: Issues with assigning color values to multiple plots.
On 28 Okt., 03:43, Eric Kangas eric.c.kan...@gmail.com wrote: still new to sage noticed that most plots had that listed to show the intervals between the range. Thanks for the info. See also the Sage versions of Python's range() and xrange(): srange() and xsrange(). E.g. sage: srange(1,10,2) [1, 3, 5, 7, 9] sage: type(srange(1,10,2)[0]) type 'sage.rings.integer.Integer' sage: type(range(1,10,2)[0]) type 'int' sage: srange(1.1,5.1) [1.10, 2.10, 3.10, 4.10] sage: srange(0.1,pi/2,0.5) [0.100, 0.600, 1.10] sage: srange(0.0,pi+pi/3,pi/3.0) [0.000, 0.333*pi, 0.667*pi, pi] -leif -- 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] integrating indicator functions
I'd like to integrate a symbolically defined indicator function: W(x,y) = t abs(x-y) 1-t though it seems our symbolic objects don't work with chained inequalities, so I'd be happy with W(x,y) = (t abs(x-y)) * (abs(x-y) 1-t) Even the following doesn't work: sage: x,y,t = var('x,y,t') sage: V(x,y) = abs(x-y) t sage: integrate(V,x,0,1) And yes, I know that it's easy to compute the this integral with a little bit of geometry, but that's hardly the point, since I want to compute homomorphism densities of a graph into the graphon W. If G is a graph on n vertices, and X is a list of n symbolic variables, one for each vertex in the graph, F = prod(W(X[i],X[j]) for i,j in G.edges(labels=False)) I want to integrate F over an n-dimensional unit cube. Does anybody know any tricks for this? Thanks, Tom -- 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