[sage-support] Re: Digamma Function in 4.1.1
On Tue, 22 Sep 2009 18:47:50 -0700 (PDT) The_Fool masterfu...@gmail.com wrote: I managed to create the symbolic polygamma function as psi(order,x). Psi is limited in what it can do, though. I can get it to grab special values from Maxima's or GiNaC's table, but I still cannot get it to approximate any value of any integer order. It can be differentiated, but not integrated. It seems that this is a limitation of Maxima and GiNaC, not Sage. You're right, looking at the functions py_psi() and py_psi2() in sage/symbolic/pynac.pyx (I'm not giving line numbers since my file is heavily patched.), I see that they just raise NotImplementedError. You could have a go at implementing these functions using the psi function from mpmath: http://mpmath.googlecode.com/svn/tags/0.13/doc/build/functions/gamma.html#mpmath.functions.psi There is an example of how to call mpmath in the function py_li of sage/symbolic/pynac.pyx. If you post your code I can give some more pointers on how to use the pynac library better. For now, if you derived you class from sage.symbolic.function.PrimitiveFunction, I suggest not using the approx option, and using the __call__ = SFunction.__call__ line to bypass the __call__ method implemented in that class. This was done by the arctan2 function in sage/functions/trig.py which I gave as an example. I will not have internet access for a few days starting tomorrow. I'll try to catch up with e-mails once I'm back. Thanks. Cheers, Burcin --~--~-~--~~~---~--~~ 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: expand, combine and rewrite with sage.
Hi Francois, On Mon, 21 Sep 2009 21:22:39 +0200 Francois Maltey fmal...@nerim.fr wrote: snip Concretely ??? I'll don't see how to operate over exp(2x) = exp(x)^2. ??? Is there a hold (or freeze) function in sage which remains exp(a)^2. Also look at integrate (exp(2*x)/(exp(3*x)+1), x). The changevar is y=exp(x) in y^2/(y^3+1). Unfortunately there is no hold function for symbolic expressions ATM. Although this is supported by GiNaC, I don't see an immediate way to expose this functionality with the current wrapper. I'll try to think of a solution for this. Maybe sage (or pyginac) has too haste to transform exp(a)^2 to exp(2a). ??? Might I have arguments about this choice ? Of course you can. I consider symbolics in Sage very much a work in progress, and any suggestion for improvement is more than welcome. I see your point about simplifying exp(x)^2 to exp(2*x) now. The main reason I left this simplification while fixing #6948 was that MMA does things this way. Another consideration was that before performing any nontrivial operation on symbolic expressions (integration, transforms, etc.), we would have to perform some normalization, and this seemed like a normal form as it is. As a workaround, you can do the following to replace exp(x) with y in the example above: sage: t = exp(2*x)/(exp(3*x)+1) sage: w = SR.wild() sage: match_list = t.find(exp(w*x)); match_list [e^(2*x), e^(3*x)] sage: match_list[0].match(exp(w*x)) {$0: 2} sage: for i in match_list: : exponent = i.match(exp(w*x))[w] : t = t.subs(i == y^exponent) : sage: t y^2/(y^3 + 1) If you think it'll help, I can probably prepare a pynac package that disables the automatic simplification of exp powers. I don't have time to submit that to Sage (say, as an alternative solution to #6948), but it's not hard to do this for experimental purposes. Thank you. Burcin --~--~-~--~~~---~--~~ 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] Help for a single test in a function.
Hello Everybody ! With sage in emacs I test this single function, but I get an error : def ff (n) : if n==0 : return(1) else : return(n*ff(n-1)) I type theses lines in a buffer, and I copy by Ctrl-K / Ctrl-Y in sage-buffer Then I get this error : : : : File ipython console, line 4 se : ^ SyntaxError: invalid syntax sage: File ipython console, line 1 SyntaxError: 'return' outside function (ipython console, line 1) sage: But functions and tests without else : are right. I deplace the else: line at the very beginning, under others lines and get the same error. What is the shortest test with else: I must try ? Many thanks. F. --~--~-~--~~~---~--~~ 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: Help for a single test in a function.
If you simply copy-paste into the sage commandline, you will get that error since after the `return(1)` line, indention goes back one level, like so: sage: def ff(n): :if n == 0: :return(1) :else: --- [Errors] Since sage.el interfaces with the sage commandline, I will have to assume the same thing happened. It's a problem with IPython, so I don't think there's much to be done about it. Last time I tried `sage.el`, there was a command to send input directly to the comandline buffer, something like send/evaluate region. Perhaps you can try that? On Wed, Sep 23, 2009 at 10:29 PM, Francois Maltey fmal...@nerim.fr wrote: Hello Everybody ! With sage in emacs I test this single function, but I get an error : def ff (n) : if n==0 : return(1) else : return(n*ff(n-1)) I type theses lines in a buffer, and I copy by Ctrl-K / Ctrl-Y in sage-buffer Then I get this error : : : : File ipython console, line 4 se : ^ SyntaxError: invalid syntax sage: File ipython console, line 1 SyntaxError: 'return' outside function (ipython console, line 1) sage: But functions and tests without else : are right. I deplace the else: line at the very beginning, under others lines and get the same error. What is the shortest test with else: I must try ? Many thanks. F. -- Tim Joseph Dumol tim (at) timdumol (dot) com --~--~-~--~~~---~--~~ 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: Help for a single test in a function.
Many thanks Tim ! If you simply copy-paste into the sage commandline, you will get that error... Last time I tried `sage.el`, there was a command to send input directly to the comandline buffer... Perfect ! I pass the edited buffer to sage-mode in emacs, get then a new sage-send-region, and this factorial function is now all right. Your reponse was precious for me ! F. --~--~-~--~~~---~--~~ 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] strange lab behavior
Hi, I'm a high school math teacher experimenting with getting students to use SAGE. I've been successful in getting my students to open their own notebook accounts. I took my classes to the computer lab one day, and during the session the kids started experiencing other names on their accounts. The names were all from our class. No one had access to anyone else's files, but suddenly the account name would shift to someone else's. And then yesterday in my regular classroom while I was demoing SAGE, suddenly the name on my account changed to that of one of my students. She was not in class that period, and I have to check to see if maybe she was using SAGE somewhere else on campus at that time. It was all very mysterious, and so I checked it out with our tech guy. I was wondering if the issue was our network. His response was, I wonder if technically we’re seen as just a singular IP address (which is our proxy). Because, everyone is using the same proxy (thus same IP) to access this website. So even though everyone is making an individual login, it’s all going through the same IP address. Any ideas as to what's happening? Thanks very much, Michel Paul --~--~-~--~~~---~--~~ 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: strange lab behavior
Although I am not a network guru, it sounds like your tech guy is right and the proxy server is causing the trouble. I don't know how you would fix that, but maybe someone else on this list does. There is an upcoming rewrite of the notebook-server implementation that might help with this but William Stein would have to confirm that. Are you using sagenb.org? -M. Hampton On Sep 23, 7:06 am, michel mpaul...@gmail.com wrote: Hi, I'm a high school math teacher experimenting with getting students to use SAGE. I've been successful in getting my students to open their own notebook accounts. I took my classes to the computer lab one day, and during the session the kids started experiencing other names on their accounts. The names were all from our class. No one had access to anyone else's files, but suddenly the account name would shift to someone else's. And then yesterday in my regular classroom while I was demoing SAGE, suddenly the name on my account changed to that of one of my students. She was not in class that period, and I have to check to see if maybe she was using SAGE somewhere else on campus at that time. It was all very mysterious, and so I checked it out with our tech guy. I was wondering if the issue was our network. His response was, I wonder if technically we’re seen as just a singular IP address (which is our proxy). Because, everyone is using the same proxy (thus same IP) to access this website. So even though everyone is making an individual login, it’s all going through the same IP address. Any ideas as to what's happening? Thanks very much, Michel Paul --~--~-~--~~~---~--~~ 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: PIL decoder jpeg not available
Mac OS X. Sage was compiled from source. This all seems like a path problem, really. --~--~-~--~~~---~--~~ 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] jsMath working on server
Finally I have jsMath working on my server. Try http://pirsqr.com:1843/ Really strange works great on IE8, but not quit as good with FireFox. The integrator has all the pretty print. Put int in the type and take a look at the pretty print output. I would like some feedback on how FireFox does with the pretty print. Thanx --~--~-~--~~~---~--~~ 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: strange lab behavior
Yes, we are using sagenb.org. I actually talked to our tech guy at one point about creating a local SAGE server for our school, and he thought he could probably do it, but he's just been swamped. But I noticed that sagenb has really become pretty smooth over the last year or so, so I went ahead and had the kids create accounts. On Sep 23, 9:08 am, Marshall Hampton hampto...@gmail.com wrote: Although I am not a network guru, it sounds like your tech guy is right and the proxy server is causing the trouble. I don't know how you would fix that, but maybe someone else on this list does. There is an upcoming rewrite of the notebook-server implementation that might help with this but William Stein would have to confirm that. Are you using sagenb.org? -M. Hampton On Sep 23, 7:06 am, michel mpaul...@gmail.com wrote: Hi, I'm a high school math teacher experimenting with getting students to use SAGE. I've been successful in getting my students to open their own notebook accounts. I took my classes to the computer lab one day, and during the session the kids started experiencing other names on their accounts. The names were all from our class. No one had access to anyone else's files, but suddenly the account name would shift to someone else's. And then yesterday in my regular classroom while I was demoing SAGE, suddenly the name on my account changed to that of one of my students. She was not in class that period, and I have to check to see if maybe she was using SAGE somewhere else on campus at that time. It was all very mysterious, and so I checked it out with our tech guy. I was wondering if the issue was our network. His response was, I wonder if technically we’re seen as just a singular IP address (which is our proxy). Because, everyone is using the same proxy (thus same IP) to access this website. So even though everyone is making an individual login, it’s all going through the same IP address. Any ideas as to what's happening? Thanks very much, Michel Paul --~--~-~--~~~---~--~~ 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
To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from. A few minutes ago I published a sage worksheet called Line Plot with Matplotlib. Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Thanks, Eric On Sep 15, 3:18 pm, Jason Grout jason-s...@creativetrax.com wrote: Jason Grout wrote: 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 Here's an example of the matplotlib canvas backend: http://dl.getdropbox.com/u/178748/mpl/test.html (it doesn't have the coordinate tracking feature implemented, I think). 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] running class sage servers
Here is my reply to a question of a colleague. Is there an easy document that tells the requirements of a class sage server? (i.e., memory, setting bridged networking on, maybe some example configurations, showing how to use the server_pool option, etc...)? Ben Woodruff wrote: I took my class to the computer lab for the last 30 minutes of class today to try Sage, and apparently we either overloaded the server, or it was just really slow this morning. Do you know if it is possible to install the sage notebook on your own server? I know that you can download sage and put it on your own machine together with VMWare. If I want to have the students use Sage without having to download the software and deal with a virtual machine, can I install on our server at BYU-I a way for the students to login and run Sage? Reply from Jason: Yesterday there was an article that referenced Sage on slashdot. William estimates that there were about 250 new accounts yesterday. We may be seeing the slowdown still from that. The vmware machine that you download is (almost) exactly the same thing that is running sagenb.org. Every version of Sage that you download has a sage server in it. Just start Sage (by typing in sage at the login prompt) and type: notebook? and you'll see a bunch of options. For you, you'll probably want something like: notebook(accounts=True, address=some address or IP address that you will access the server with) I think there may be one other thing you need to do. In VMWare, you need to set up the networking to be bridged networking, so that people outside of your computer can access the vmware virtual computer. You can even run it from your office computer, if there is any way to access your office computer from the lab computers. How many students do you have logging in simultaneously? You need to have enough memory to support lots of sage processes running at the same time. If I recall correctly, I think the vmware computer will need to have about 55M of memory for each sage process (i.e., each running worksheet), so if you have 35 students, that's 35*55=1925M just for the worksheets, so with the operating system and notebook process, probably 2.2G of memory would be sufficient. And that's just for the VMWare virtual server. You still need memory for the host computer's operating system. I think I figured once that if I wanted to set up my own server to serve about 30-35 simultaneous students, it would take a computer with about 3Gig of memory. I would allocate about 2.5G towards the VMWare virtual computer. Also, you could probably have directed some students to demo.sagenb.org and demo2.sagenb.org. William set those up so there would be a server or two without the heavy load of sagenb.org. They each have 8Gig of memory and 2 processors allocated to them. I'm not sure how much sagenb.org has allocated to it. I think it has 2 processors allocated to it, though. My guess is that demo.sagenb.org and/or demo2.sagenb.org could have been sufficient for you. If you have any questions about whether you can use something like demo.sagenb.org, etc., just email the support list or William directly. All of the sagenb.org, demo.sagenb.org, etc., run on a 24 processor, 128GB of ram box. By the way, one of the biggest goals of William's current rewrite of the notebook is to make it scale much, much better. 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
Eric Jackson wrote: To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from. A few minutes ago I published a sage worksheet called Line Plot with Matplotlib. Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. You can't use show. Use savefig, as in: savefig('test.png') The sage notebook automatically displays any graphic file you generate in a cell. That's why we need to save the figure to a graphics file, like test.png. Then the notebook comes along, sees that the cell generated a graphic file, and displays it. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Just change the last line to plt.savefig... just like the first cell. It's not savefile, it's savefig :). 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 URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] numpy ix_ command for submatricies
Hey, I have some code that I wrote with my Enthought python distribution on my laptop which uses the ix_ command for arrays and matrices in numpy, for example: a=array([1,2,3,4,5,6]) b=[3,4] a[ix_(b)] gives: array([4,5]) but when using Sage on the computers at work it does not recognize this command (regardless of whether I start up in sage, python, or ipython). Having looked at the documentation I have found the sage command matrix_from_rows_and_columns which seems to do the same job, but that requires the array or matrix to be made into a Sage matrix, which I would prefer not to do so as to have compatibility across multiple platforms. Is there a way around this or a specific reason why Sage does not support the ix_ command? Thanks, Joe --~--~-~--~~~---~--~~ 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: numpy ix_ command for submatricies
Joe wrote: Hey, I have some code that I wrote with my Enthought python distribution on my laptop which uses the ix_ command for arrays and matrices in numpy, for example: a=array([1,2,3,4,5,6]) b=[3,4] a[ix_(b)] gives: array([4,5]) but when using Sage on the computers at work it does not recognize this command (regardless of whether I start up in sage, python, or ipython). This seems to work fine for me on sagenb.org. Do you have the most recent version of Sage? sage: from numpy import ix_ sage: a=array([1,2,3,4,5,6]) sage: b=[3,4] sage: a[ix_(b)] array([4, 5]) 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: numpy ix_ command for submatricies
Ah, so using Sage you have to import the ix_ function separately, where apparently in the enthought distribution you dont have to. Although now Sage is telling me that the entries I have in the variable 'b' need to be integers (which I think has to do with the fact that I am running Sage 4.1 as I think I have run into that particular problem before and it was fixed roughly 2 weeks after I installed Sage). Thanks, Joe On Sep 23, 2:19 pm, Jason Grout jason-s...@creativetrax.com wrote: Joe wrote: Hey, I have some code that I wrote with my Enthought python distribution on my laptop which uses the ix_ command for arrays and matrices in numpy, for example: a=array([1,2,3,4,5,6]) b=[3,4] a[ix_(b)] gives: array([4,5]) but when using Sage on the computers at work it does not recognize this command (regardless of whether I start up in sage, python, or ipython). This seems to work fine for me on sagenb.org. Do you have the most recent version of Sage? sage: from numpy import ix_ sage: a=array([1,2,3,4,5,6]) sage: b=[3,4] sage: a[ix_(b)] array([4, 5]) 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: numpy ix_ command for submatricies
Joe wrote: Ah, so using Sage you have to import the ix_ function separately, where apparently in the enthought distribution you dont have to. Although now Sage is telling me that the entries I have in the variable 'b' need to be integers (which I think has to do with the fact that I am running Sage 4.1 as I think I have run into that particular problem before and it was fixed roughly 2 weeks after I installed Sage). Yes, that problem is fixed in the current Sage. 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
Thanks, I just figured this out right after I posted. This should have been obvious, I guess I got brain tired. Thanks again, Eric On Sep 23, 2009, at 2:13 PM, Jason Grout wrote: Eric Jackson wrote: To address my dilemma regarding line plots, I read about matplotlib at http://matplotlib.sourceforge.net/users/transforms_tutorial.html. This is a library that a user can import into their Sage worksheet to allow then more flexibility with plots. When using matplotlib, the user may have to apply certain backends to achieve visibility of plots. The backend the user applies depends solely on where he/she is using matplotlib interactively from. A few minutes ago I published a sage worksheet called Line Plot with Matplotlib. Cell 1 of this sheet shows a simple plot using a hardcopy backend to create a PNG file. This is an item that Jason Grout helped me with. Thanks Jason! Cell 2 (#Their version from matplotlib documentation) uses pylab instead of pyplot. The code in cell 2 was obtained from the matplotlib website. I could not get this to work, instead I inserted my own version in cell 3 (#My version), which produces the same plot that cell 2 would produce had it worked. If anybody can get cell 2 working, then that would be really cool. You can't use show. Use savefig, as in: savefig('test.png') The sage notebook automatically displays any graphic file you generate in a cell. That's why we need to save the figure to a graphics file, like test.png. Then the notebook comes along, sees that the cell generated a graphic file, and displays it. *However, the code in cell 4, is where I really need the help. The code in cell 4 is suppose to display the xy data at a certain location on the line plot. I have looked at this for a while, but I am confused as to why it doesn't work. This code was also taken from the mathplotlib website. Any help on this in particular would be neat. In my spare time, I will continue to work on this. Just change the last line to plt.savefig... just like the first cell. It's not savefile, it's savefig :). 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 URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: strange lab behavior
It really is pretty easy to set up a server, and if you have any problems you can write in here. The documentation from sage: notebook? should be enough to get started, and if not it should be improved. -M. Hampton On Sep 23, 12:06 pm, michel mpaul...@gmail.com wrote: Yes, we are using sagenb.org. I actually talked to our tech guy at one point about creating a local SAGE server for our school, and he thought he could probably do it, but he's just been swamped. But I noticed that sagenb has really become pretty smooth over the last year or so, so I went ahead and had the kids create accounts. On Sep 23, 9:08 am, Marshall Hampton hampto...@gmail.com wrote: Although I am not a network guru, it sounds like your tech guy is right and the proxy server is causing the trouble. I don't know how you would fix that, but maybe someone else on this list does. There is an upcoming rewrite of the notebook-server implementation that might help with this but William Stein would have to confirm that. Are you using sagenb.org? -M. Hampton On Sep 23, 7:06 am, michel mpaul...@gmail.com wrote: Hi, I'm a high school math teacher experimenting with getting students to use SAGE. I've been successful in getting my students to open their own notebook accounts. I took my classes to the computer lab one day, and during the session the kids started experiencing other names on their accounts. The names were all from our class. No one had access to anyone else's files, but suddenly the account name would shift to someone else's. And then yesterday in my regular classroom while I was demoing SAGE, suddenly the name on my account changed to that of one of my students. She was not in class that period, and I have to check to see if maybe she was using SAGE somewhere else on campus at that time. It was all very mysterious, and so I checked it out with our tech guy. I was wondering if the issue was our network. His response was, I wonder if technically we’re seen as just a singular IP address (which is our proxy). Because, everyone is using the same proxy (thus same IP) to access this website. So even though everyone is making an individual login, it’s all going through the same IP address. Any ideas as to what's happening? Thanks very much, Michel Paul --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---