[sage-support] Using Sage with a large number of undergraduate students.

2008-10-06 Thread Thierry Dumont

I would like to know if someone as used Sage with undergraduate
students. My question is mainly a question about the material which
would be necessary.

We are currently building a project (this means: asking for money, doing
a lot a bureaucracy and so on) on Sage in my University: the idea is to
start the replacement of  the current commercial system (Maple) by Sage.
Nowadays, students use Maple on a network of Windows machines.  We would
like to make a large Sage server so that all the students use the web
interface.

I can add to Sage an identification on the ldap server (actually active
directory) of the University, and Sage accounts will be  created
automatically.

The more difficult question for us is: which machine? One can expect to
have about 200 students using Sage at the same time, with large
subgroups of students doing the same thing at the same time. Ok, as it
is undergraduate students, they will not make very large computations...
But what about the scalability of Sage, of the web server?

We are currently looking at machines with 2x4 core processors, 32 gb of
RAM, 2x450 Gb of disk (raid1). Larger machines exists, but are extremely
expensive. We can ask for two machines like this.

As anyone some experience in this domain?

Yours,
t.d.
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Dan Drake
On Mon, 06 Oct 2008 at 09:16AM +0200, Thierry Dumont wrote:
 I would like to know if someone as used Sage with undergraduate
 students. My question is mainly a question about the material which
 would be necessary.
 
 We are currently building a project (this means: asking for money,
 doing a lot a bureaucracy and so on) on Sage in my University: the
 idea is to start the replacement of  the current commercial system
 (Maple) by Sage. Nowadays, students use Maple on a network of Windows
 machines.  We would like to make a large Sage server so that all the
 students use the web interface.

I don't have any experience with the above, although I'm guessing the
sagenb.org machine deals with similar loads. I definitely want to hear
about your experiences, as I have distant plans for doing the same thing
at my university.

My own plan is to run a server on a powerful personal machine and let
students create their own accounts, and when they start complaining that
it's too slow, pass their complaints on and ask for a better server. :)

Dan

-- 
---  Dan Drake [EMAIL PROTECTED]
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] Re: How add axes labels and titles to Sage plots?

2008-10-06 Thread Stan Schymanski

As far as I know, the title function is not implemented in plot yet.
It would also be very useful to have a legend function similar to the
one in pylab. There has been a discussion of this on the support list
already, and I concluded that someone might be working on the plot
functionalities already. Just search the support list for legend.
I use pylab from within Sage for any more sophisticated plotting. It
works great. It would be nice if the Sage plot function would take all
the options of pylab plots. No idea how hard it would be to implement
it.

Stan

On Oct 5, 7:18 pm, Martin Albrecht [EMAIL PROTECTED]
wrote:

 As it turns out, my comment was wrong. This works:

 sage: p = plot(sin,-pi,pi)
 sage: p.axes_labels(['foo','bar'])
 sage: p.show()

 Cheers,
 Martin

 --
 name: Martin Albrecht
 _pgp:http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
 _www:http://www.informatik.uni-bremen.de/~malb
 _jab: [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Physics package

2008-10-06 Thread Georg M.

Dear Radhakrishna,

I'm taking the liberty to forward your message to Sage Support, a
discussion group that deals with questions like these. I don't think
that there are many people working on such functionality right now,
but it might be supported through one of its packages.

With kindest regards,
Georg.

-- Forwarded message --
Hi Georg !

Over the last few years, I have become used to the Physics Package of
Maple which enables one to use bras, kets, annihilation operators and
other objects for Physics. Is it possible to get equivalent
definitions in Sage for Physics field theory variational calculus etc
?
Any leads ? Please send me some links!
Thanks
Radhakrishna

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-06 Thread Ines Abdeljaoued-TEJ

After installing the last version of gcc-4.2.4 (I verified it with gcc -v), 
and re-compiling sage-3.1.2, fellows the error's message : 

import error /usr/lib/libstdc++.SO.6 version GLIBCXX-3.4.9 not found
Thanks for help, 
Ines.

Le Saturday 04 October 2008 00:29:09 William Stein, vous avez écrit :
 On Fri, Oct 3, 2008 at 1:25 PM, Ines Abdeljaoued-TEJ [EMAIL PROTECTED] 
 wrote:
  I'll be to the office tomorrow; do you understand french ?

 You get an internal compiler error when installing the Cython
 spkg.  You're using gcc version 4.1.0 (SUSE Linux) and the
 error is copied below and is, in short internal compiler error.
 This always indicates either a serious bug in your compiler
 or your hardware is defective.

 You should definitely upgrade to a newer version of GCC
 and try building Sage again from scratch.

 gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
 -Wstrict-prototypes -fPIC
 -I/home/essai/Desktop/SAGEmath/sage-3.1.2/local/include/python2.5 -c
 /home/essai/Desktop/SAGEmath/sage-3.1.2/spkg/build/cython-0.9.8.1.1.p0/src/
Cython/Plex/Scanners.c -o
 build/temp.linux-i686-2.5/home/essai/Desktop/SAGEmath/sage-3.1.2/spkg/build
/cython-0.9.8.1.1.p0/src/Cython/Plex/Scanners.o
 /home/essai/Desktop/SAGEmath/sage-3.1.2/spkg/build/cython-0.9.8.1.1.p0/src/
Cython/Plex/Scanners.c: In function
 '__pyx_pf_6Cython_4Plex_8Scanners_7Scanner_scan_a_token':
 /home/essai/Desktop/SAGEmath/sage-3.1.2/spkg/build/cython-0.9.8.1.1.p0/src/
Cython/Plex/Scanners.c:817: internal compiler error: in merge_alias_info, at
 tree-ssa-copy.c:235 Please submit a full bug report,
 with preprocessed source if appropriate.
 See URL:http://www.suse.de/feedback for instructions.
 error: command 'gcc' failed with exit status 1

  Thanks, Ines.
 
  Le Friday 03 October 2008 15:37:11 mabshoff, vous avez écrit :
  On Oct 3, 5:30 am, Ines [EMAIL PROTECTED] wrote:
   Hi !
   I tried to insatll a last version of sage : sage-3.1.2.tar with no
   sucess. How can I send you the insall.log file ?
  
   Ines.
 
  Hi Ines,
 
  please send it compressed to me off list per email.
 
  Cheers,
 
  Michael
 
  --
  Ines Abdeljaoued-TEJ
 
  Unite Algorithmes et Structures,
  Ecole Superieure de La Statistique et
  de l'Analyse de l'Information de Tunis,
 
  tel : (+216)70 839 440 Poste 226
  fax : (+216)70 838 170
  mel : [EMAIL PROTECTED]
  adr : 6 rue des metiers, la Charguia 2, 2036 Ariana, Tunisia.



-- 
Ines Abdeljaoued-TEJ

Unite Algorithmes et Structures,
Ecole Superieure de La Statistique et 
de l'Analyse de l'Information de Tunis,

tel : (+216)70 839 440 Poste 226
fax : (+216)70 838 170
mel : [EMAIL PROTECTED]
adr : 6 rue des metiers, la Charguia 2, 2036 Ariana, Tunisia. 

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] notebook server with server_pool

2008-10-06 Thread Dan Drake
As I mentioned in another thread, I'm working up to having a public Sage
server at my university. Reading through the notebook() documentation, I
see:

  server_pool -- (default: None), if given, should be a list like 
   ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]'], where
   you have setup ssh keys so that typing
   ssh [EMAIL PROTECTED]
   logs in without requiring a password, e.g., by typing
   as the notebook server user
   cd; ssh-keygen -t rsa
   then put ~/.ssh/id_rsa.pub as the file .ssh/authorized_keys2.
   Note -- you have to get the permissions of files
   and directories just right -- do a web search
   for more details.

I did a web search and found nothing but other people looking for details!

I tried for a bit to figure out the permissions, but couldn't get things
to work. Can someone explain how to set this up? I understand ssh keys
and Unix file permissions and so on, but I don't know what the notebook
server needs or wants with respect to them.

Thanks,

Dan

-- 
---  Dan Drake [EMAIL PROTECTED]
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] ntl dylib

2008-10-06 Thread Guilhem_Bourrie

hello,
I am a new member of this group,

I downloaded the source code and tried to compile it.
My computer is a Mac PowerPC G5 core 2 duo, the operating system is
MacOSX 10.3.9.

I obtained the following messages:

1. Found Fink in your path etc. Either:
(1) rename /opt/local and /sw, or
(2) change PATH and DYLD_LIBRARY_PATH
(Once sage is built, you can restore them.)


I chose the (1) option, and renamed /sw; I did not find /opt/local.
I resumed the command make, and obtained:

ld: flag: -undefined dynamic_lookup can't be used with
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libntl.dylib] Error 1
Failed to build NTL dylib.

real7m7.444s
user6m19.310s
sys 0m42.470s
sage: An error occurred while installing ntl-5.4.2.p4
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /Applications/sage-3.1.2/install.log.  Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/Applications/sage-3.1.2/spkg/build/ntl-5.4.2.p4 and type 'make'.
Instead type /Applications/sage-3.1.2/sage -sh
in order to set all environment variables correctly, then cd to
/Applications/sage-3.1.2/spkg/build/ntl-5.4.2.p4
(When you are done debugging, you can type exit to leave the
subshell.)
make[1]: *** [installed/ntl-5.4.2.p4] Error 1


I typed :
/Applications/sage-3.1.2/sage -sh

then cd to :
/Applications/sage-3.1.2/spkg/build/ntl-5.4.2.p4

but my question is: what must I do in this directory ?
There is no makefile in this directory.

With best regards,


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread William Stein

2008/10/6 Thierry Dumont [EMAIL PROTECTED]:

 I would like to know if someone as used Sage with undergraduate
 students. My question is mainly a question about the material which
 would be necessary.

 We are currently building a project (this means: asking for money, doing
 a lot a bureaucracy and so on) on Sage in my University: the idea is to
 start the replacement of  the current commercial system (Maple) by Sage.
 Nowadays, students use Maple on a network of Windows machines.  We would
 like to make a large Sage server so that all the students use the web
 interface.

 I can add to Sage an identification on the ldap server (actually active
 directory) of the University, and Sage accounts will be  created
 automatically.

 The more difficult question for us is: which machine? One can expect to
 have about 200 students using Sage at the same time, with large

There is no way you can have 200 students all using exactly one
sage notebook server on the same port *at the same time* and
have it feel snappy still.   I've done classes with 30 people at once
and that worked OK -- the server I used was sage.math (16 1.8Ghz
opterons from 2005).  If you ran say 6 different servers, even on the
same hardware, at once, that would probably work fairly well.
Probably using two of the 8-core 32GB of RAM machines you list
below, with say three sage notebook servers on each, would work
reasonably well.

If you publish the relevant notebooks the students need, and
just redirect students from some master login page to one of those
six distinct servers, this could work pretty well.

 subgroups of students doing the same thing at the same time. Ok, as it
 is undergraduate students, they will not make very large computations...
 But what about the scalability of Sage, of the web server?

To emphasize again, I doubt it scales to more than 30 users all hammering
the server at once.

 We are currently looking at machines with 2x4 core processors, 32 gb of
 RAM, 2x450 Gb of disk (raid1). Larger machines exists, but are extremely
 expensive. We can ask for two machines like this.

 As anyone some experience in this domain?

sagenb.org obviously has a lot of usage.
I basically started it as a server from scratch
1 month ago, and over 750 people created
accounts on it during the last month.

 -- William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Possible to add Latex math equations to Sage plots?

2008-10-06 Thread Robert Bradshaw

On Oct 6, 2008, at 9:37 AM, William Stein wrote:

 On Mon, Oct 6, 2008 at 4:37 AM, David Joyner [EMAIL PROTECTED]  
 wrote:

 On Mon, Oct 6, 2008 at 12:08 AM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

 Is it possible to add Latex equations to Sage plots?


 In 2d plots, yes, for example

 sage: P1 = plot(sin(x), (x,-pi,pi))
 sage: P2 = text($y=\sin(x),\ -\pi\leq x\leq \pi$, (1.5,4))
 sage: show(P1+P2)


 However, I think latex is not (yet?) implemented in text3d.

 Yes, there is no latex support for text in 3d plots, and
 in fact nothing planned either.  I have no clue how it
 would even be possible.

It would render a png and then use texture mapping. Texture mapping  
would be useful for a lot of other things too--jmol supports it (via  
voxels) but no one has gotten around to implementing it yet.

- Robert


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread kcrisman




 To emphasize again, I doubt it scales to more than 30 users all hammering
 the server at once.


I can confirm this from our experience as well; on a more moderate
size server even 15-20 at once becomes very problematic.

- kcrisman
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Possible to add Latex math equations to Sage plots?

2008-10-06 Thread William Stein

On Mon, Oct 6, 2008 at 4:37 AM, David Joyner [EMAIL PROTECTED] wrote:

 On Mon, Oct 6, 2008 at 12:08 AM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

 Is it possible to add Latex equations to Sage plots?


 In 2d plots, yes, for example

 sage: P1 = plot(sin(x), (x,-pi,pi))
 sage: P2 = text($y=\sin(x),\ -\pi\leq x\leq \pi$, (1.5,4))
 sage: show(P1+P2)


 However, I think latex is not (yet?) implemented in text3d.

Yes, there is no latex support for text in 3d plots, and
in fact nothing planned either.  I have no clue how it
would even be possible.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Jason Grout

William Stein wrote:
 2008/10/6 Thierry Dumont [EMAIL PROTECTED]:
 I would like to know if someone as used Sage with undergraduate
 students. My question is mainly a question about the material which
 would be necessary.

 We are currently building a project (this means: asking for money, doing
 a lot a bureaucracy and so on) on Sage in my University: the idea is to
 start the replacement of  the current commercial system (Maple) by Sage.
 Nowadays, students use Maple on a network of Windows machines.  We would
 like to make a large Sage server so that all the students use the web
 interface.

 I can add to Sage an identification on the ldap server (actually active
 directory) of the University, and Sage accounts will be  created
 automatically.

 The more difficult question for us is: which machine? One can expect to
 have about 200 students using Sage at the same time, with large
 
 There is no way you can have 200 students all using exactly one
 sage notebook server on the same port *at the same time* and
 have it feel snappy still.   I've done classes with 30 people at once
 and that worked OK -- the server I used was sage.math (16 1.8Ghz
 opterons from 2005).  If you ran say 6 different servers, even on the
 same hardware, at once, that would probably work fairly well.
 Probably using two of the 8-core 32GB of RAM machines you list
 below, with say three sage notebook servers on each, would work
 reasonably well.
 
 If you publish the relevant notebooks the students need, and
 just redirect students from some master login page to one of those
 six distinct servers, this could work pretty well.
 
 subgroups of students doing the same thing at the same time. Ok, as it
 is undergraduate students, they will not make very large computations...
 But what about the scalability of Sage, of the web server?
 
 To emphasize again, I doubt it scales to more than 30 users all hammering
 the server at once.
 
 We are currently looking at machines with 2x4 core processors, 32 gb of
 RAM, 2x450 Gb of disk (raid1). Larger machines exists, but are extremely
 expensive. We can ask for two machines like this.

 As anyone some experience in this domain?
 
 sagenb.org obviously has a lot of usage.
 I basically started it as a server from scratch
 1 month ago, and over 750 people created
 accounts on it during the last month.


Can anyone comment on the possibility of running 25-30 sage sessions 
from the command line on a modest configuration?  In other words, is the 
problem in running 25-30 sage processes, or is the bottleneck in the 
webserver and notebook interface?

Based on your comment about running several servers on the same box, it 
seems that the problem is that the web server cannot handle very many 
concurrent connections.  In that case, the recent query about using sage 
with mod_python or some other higher performance solution might be worth 
looking at again.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Robert Bradshaw

On Oct 6, 2008, at 10:21 AM, Jason Grout wrote:

 William Stein wrote:
 2008/10/6 Thierry Dumont [EMAIL PROTECTED]:
 I would like to know if someone as used Sage with undergraduate
 students. My question is mainly a question about the material which
 would be necessary.

 We are currently building a project (this means: asking for  
 money, doing
 a lot a bureaucracy and so on) on Sage in my University: the idea  
 is to
 start the replacement of  the current commercial system (Maple)  
 by Sage.
 Nowadays, students use Maple on a network of Windows machines.   
 We would
 like to make a large Sage server so that all the students use the  
 web
 interface.

 I can add to Sage an identification on the ldap server (actually  
 active
 directory) of the University, and Sage accounts will be  created
 automatically.

 The more difficult question for us is: which machine? One can  
 expect to
 have about 200 students using Sage at the same time, with large

 There is no way you can have 200 students all using exactly one
 sage notebook server on the same port *at the same time* and
 have it feel snappy still.   I've done classes with 30 people at once
 and that worked OK -- the server I used was sage.math (16 1.8Ghz
 opterons from 2005).  If you ran say 6 different servers, even on the
 same hardware, at once, that would probably work fairly well.
 Probably using two of the 8-core 32GB of RAM machines you list
 below, with say three sage notebook servers on each, would work
 reasonably well.

 If you publish the relevant notebooks the students need, and
 just redirect students from some master login page to one of those
 six distinct servers, this could work pretty well.

 subgroups of students doing the same thing at the same time. Ok,  
 as it
 is undergraduate students, they will not make very large  
 computations...
 But what about the scalability of Sage, of the web server?

 To emphasize again, I doubt it scales to more than 30 users all  
 hammering
 the server at once.

 We are currently looking at machines with 2x4 core processors, 32  
 gb of
 RAM, 2x450 Gb of disk (raid1). Larger machines exists, but are  
 extremely
 expensive. We can ask for two machines like this.

 As anyone some experience in this domain?

 sagenb.org obviously has a lot of usage.
 I basically started it as a server from scratch
 1 month ago, and over 750 people created
 accounts on it during the last month.


 Can anyone comment on the possibility of running 25-30 sage sessions
 from the command line on a modest configuration?  In other words,  
 is the
 problem in running 25-30 sage processes, or is the bottleneck in the
 webserver and notebook interface?

Yep, I remember someone a while back was going to convert the  
interface to use a database backend to make it scale better, but I  
don't think it ever got finished.

As a workaround, you could start up several notebooks at once and  
assign 20 or so students per port, which should work fine.

- Robert



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread William Stein

On Mon, Oct 6, 2008 at 10:11 AM, kcrisman [EMAIL PROTECTED] wrote:




 To emphasize again, I doubt it scales to more than 30 users all hammering
 the server at once.


 I can confirm this from our experience as well; on a more moderate
 size server even 15-20 at once becomes very problematic.

One thing I should emphasize is that it's not necessarily a hardware
or bandwith limitation, i.e., in my experience running multiple servers
on different ports on the same hardware allows one to go serve
more users at once.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How add axes labels and titles to Sage plots?

2008-10-06 Thread Jason Grout

William Stein wrote:
 On Mon, Oct 6, 2008 at 1:26 AM, Stan Schymanski [EMAIL PROTECTED] wrote:
 As far as I know, the title function is not implemented in plot yet.
 It would also be very useful to have a legend function similar to the
 one in pylab. There has been a discussion of this on the support list
 already, and I concluded that someone might be working on the plot
 functionalities already.
 
 To the best of my knowledge at present absolutely nobody is
 working in a concerted way on 2d or 3d plotting in Sage right now.
 Mike Hansen did a lot of useful cleanup, but has moved onto
 sphinx-ify the documentation, which is higher priority.
 I had hoped Emily Kirkman would work on plotting this summer,
 and after, but she has ended up working on different things.
 I had also hoped something longterm regarding plotting would
 come out of Sage Days 9, but that didn't happen due to the
 organization of that meeting.
 
 I'll keep my eyes open for a student to hire at UW to work
 on plotting, but so far I don't know of anybody qualified
 and interested yet.

Gee, I wish I was a student at UW! :).  I really appreciate the effort 
various people have put into the plotting framework.  The NotImplemented 
parts have bothered me for a while (as well as some of the framework 
itself), but I haven't had time to do an overhaul, though I've made some 
somewhat meager attempts at starting.  If someone were to spearhead such 
a thing, I'd like to be involved.  I don't see the time in my future for 
spearheading such a thing until possibly next April/May at the earliest.

Mike's improvements to plot.py (both his cleanup and his patch for 
options decorators) make such an overhaul much easier.  Kudos and a 
candy bar to him.

Thanks,

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: is it possible to show() a variable with it's name = in front of it

2008-10-06 Thread Samuel Gaehwiler

Thank you all for your replies! I was overwhelmed by your fast and
helpful replies!

I may should have described my desired result in more detail:
I don't wanna display/print out the line
  a = \frac{{2 q}}{3}
but I would like to Sage display it, as if it was processed by latex
(the look of a formula in a math book).

@ Neal Holtz
 sage: def vshow(_v):
 : print '%s = %s\n' % (_v,latex(globals()[_v]))

Your solution works nice, as long as there is a symbolic variable.
i.e.
sage: var('q')
sage: a = 3*q/2
sage: vshow('a')
a = \frac{{3 q}}{2}

but if there is no symbolic variable included, it's not working:
sage: b = 2/3
sage: vshow('b')
b

And as mentioned above, I desire s.t. a little bit different. Maybe
this output can be changed to that of show(). I tried, but did not
succeed:
sage: show(latex(2/3))
( as well as show(2/3) )
produces a nice formated fraction, but
sage: show(latex(b = 2/3))
only displays the fraction - what actually makes sense.

@ Georg
  def ashow(**args):

 ... for key in args:
 ... print key,'=',args[key]

works quite nice! Output of ashow(a=a):
a =
  2 q
  ---
   3
this looks like the output of show() when entered in the terminal into
sage.

@ Jason Grout
 Once a_2 is passed to the show function, I don't think the show
 function knows where it came from, i.e., the show function has access to
 the *value* of a_2, but doesn't know what variable name was actually passed.

 The other solutions had the variable name passed to the function as a
 string, which, of course, would be different because there you are
 passing in a string, the name of the variable.

I think thats the key issue:
Is there a way to make a variable return its name as a string (s.t.
like a.name())?
Or is there a way to access the content of a variable, when you only
have a string with its name? Well, I think Neal Holtz did this with
globals()[_v]
but since I'm a novice with sage and a total novice with python, I
really don't have a clue.
My modification of his function messed up the order of the output and
did not lead to the desired result...:
sage: def vshow(_v):
sage:print '%s = %s\n' % (_v,show(globals()[_v]))


thanks again for all your valuable help!

Samuel
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Alex Clemesha
Hi,


 Note -- if the notebook servers all operated on the same
 data (via a central database or files on the filesystem or something),
 then one could have the best of both worlds... I guess.
 But I doubt I'm putting another month of my life into the
 Sage notebook anytime in the near future.



As we discussed with William, but for others who are interested,
we have been designing Knoboo to use a centralized database
via SQLAlchemy, and it is something that is definitely worth doing.

The two files here describe our entire data scheme:
http://trac.knoboo.com/browser/trunk/knoboo/knoboo/database/
and with SQLAlchemy you can use SQLite, MySQL, PostgreSQL, etc
as the centralized database behind the scenes.




  Based on your comment about running several servers on the same box, it
  seems that the problem is that the web server cannot handle very many
  concurrent connections.  In that case, the recent query about using sage
  with mod_python or some other higher performance solution might be worth
  looking at again.

The web server (Twisted) can certainly handle hundreds to thousands of
connections, read more about that here: twistedmatrix.com, especially
see all the 'big' companies using Twisted.

In a web application like the notebook, the webserver should be doing
only 2 main things: 1) passing snippets of code to another process (the
'kernel')
that actually evaluates the code, and 2) talking to a database to preserve
the input and output (among other less frequent data access actions).

We have spend a majority of our effort on Knoboo trying to make
it a robust and scalable web application (like, for example, the
'frontend' is totally decoupled from the backend 'kernel').

What's missing from Knoboo, and what is so great about the Sage Notebook,
is all the awesome usability features like @interact, etc.
I'm optimistic that we will be able to merge both our best attributes
in due time.


-Alex



-- 
Alex Clemesha
clemesha.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Possible to add Latex math equations to Sage plots?

2008-10-06 Thread Martin Albrecht

On Monday 06 October 2008, Robert Bradshaw wrote:
  Yes, there is no latex support for text in 3d plots, and
  in fact nothing planned either.  I have no clue how it
  would even be possible.

 It would render a png and then use texture mapping. Texture mapping
 would be useful for a lot of other things too--jmol supports it (via
 voxels) but no one has gotten around to implementing it yet.

My idea was to render an SVG and use that information to build a 3D model, but 
I don't know how complex that would be.

Cheers,
Martin


-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Ondrej Certik

On Mon, Oct 6, 2008 at 9:49 PM, Alex Clemesha [EMAIL PROTECTED] wrote:
 Hi,


 Note -- if the notebook servers all operated on the same
 data (via a central database or files on the filesystem or something),
 then one could have the best of both worlds... I guess.
 But I doubt I'm putting another month of my life into the
 Sage notebook anytime in the near future.

 As we discussed with William, but for others who are interested,
 we have been designing Knoboo to use a centralized database
 via SQLAlchemy, and it is something that is definitely worth doing.

 The two files here describe our entire data scheme:
 http://trac.knoboo.com/browser/trunk/knoboo/knoboo/database/
 and with SQLAlchemy you can use SQLite, MySQL, PostgreSQL, etc
 as the centralized database behind the scenes.


  Based on your comment about running several servers on the same box, it
  seems that the problem is that the web server cannot handle very many
  concurrent connections.  In that case, the recent query about using sage
  with mod_python or some other higher performance solution might be worth
  looking at again.

 The web server (Twisted) can certainly handle hundreds to thousands of
 connections, read more about that here: twistedmatrix.com, especially
 see all the 'big' companies using Twisted.

 In a web application like the notebook, the webserver should be doing
 only 2 main things: 1) passing snippets of code to another process (the
 'kernel')
 that actually evaluates the code, and 2) talking to a database to preserve
 the input and output (among other less frequent data access actions).

 We have spend a majority of our effort on Knoboo trying to make
 it a robust and scalable web application (like, for example, the
 'frontend' is totally decoupled from the backend 'kernel').

 What's missing from Knoboo, and what is so great about the Sage Notebook,
 is all the awesome usability features like @interact, etc.
 I'm optimistic that we will be able to merge both our best attributes
 in due time.

Indeed, that'd be awesome. Knoboo is lightweight. I had to stop
running Sage on my virtual server (with only about 360MB of virtual
ram) because it was eating several hundreds of megabytes of memory.
Knoboo is running just fine.

Ondrej

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: is it possible to show() a variable with it's name = in front of it

2008-10-06 Thread kkwweett

Or is there a way to access the content of a variable, when you only
have a string with its name?

'Eval' can do that :

def ashow(v):
  show($+v+=%s$%latex(eval(v)))


b=2/3
ashow('b')

Hope that helps
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] no absoluate value in sqrt((something)^2)

2008-10-06 Thread [EMAIL PROTECTED]

Hello, running

(sqrt(1+4*x^2/(1-x^2)^2)).radical_simplify()

gives (1+x^2)/(1-x^2)
but I expect absolute values, like  (1+x^2)/abs(1-x^2)

is this an error in Sage?
Maxima has the same problem

Thank you
Robert Marik

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: notebook server with server_pool

2008-10-06 Thread William Stein

On Mon, Oct 6, 2008 at 3:30 PM, Jason Grout [EMAIL PROTECTED] wrote:

 William Stein wrote:
 On Mon, Oct 6, 2008 at 3:19 AM, Dan Drake [EMAIL PROTECTED] wrote:
 As I mentioned in another thread, I'm working up to having a public Sage
 server at my university. Reading through the notebook() documentation, I
 see:

  server_pool -- (default: None), if given, should be a list like
   ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]'], where
   you have setup ssh keys so that typing
   ssh [EMAIL PROTECTED]
   logs in without requiring a password, e.g., by typing
   as the notebook server user
   cd; ssh-keygen -t rsa
   then put ~/.ssh/id_rsa.pub as the file .ssh/authorized_keys2.
   Note -- you have to get the permissions of files
   and directories just right -- do a web search
   for more details.

 I did a web search and found nothing but other people looking for details!

 I tried for a bit to figure out the permissions, but couldn't get things
 to work. Can someone explain how to set this up? I understand ssh keys
 and Unix file permissions and so on, but I don't know what the notebook
 server needs or wants with respect to them.

 If foo is a user in the server pool, you should be able to login
 as the server user and type ssh [EMAIL PROTECTED] and have the
 login work without having to explicitly type a password.

 Have you got the above to work and things still don't work?
 If so, what doesn't work?


 Okay, I just tried using the server_pool option.  I can ssh
 [EMAIL PROTECTED] from [EMAIL PROTECTED]  I can run the sage server
 without the server_pool option from the server account and successfully
 evaluate cells.  However, when the server_pool option gives
 [EMAIL PROTECTED] as the ssh login to use, when I try to evaluate a cell,
 I get an error like:

 Traceback (click to the left for traceback)
 ...
 IOError: [Errno 13] Permission denied:
 '/home/server/.sage/sage_notebook/worksheets/myuser/0/code/1.py'

 Does the server_pool option correctly account for the setting of
 permissions on the DOT_SAGE directory?  Is there something else going on
 here?


You should run a sage notebook that isn't in ~/.sage and
set the permissions of that directory so that other users
can read from it.  Otherwise, there is no way this can work.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: problem with plot3d

2008-10-06 Thread David Joyner

On Mon, Oct 6, 2008 at 4:33 PM, ecanton [EMAIL PROTECTED] wrote:

 It seems that the function plot3d isn't working. When trying to use
 it, it pauses on a new line for a bit, as though it's producing the
 graph, but then it gives me a new prompt. plot( works just fine. Is
 there some package I'm missing?


plot3d requires java. Is that running properly?
On my intel macbook (running OS 10.4), plot3d runs perfectly.



 I'm using sage 3.1.2 on Mac OS X.5.

 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Timothy Clemans

Ondrej,

Did you have to stop supporting Sage altogether or just the Sage Notebook?

On Mon, Oct 6, 2008 at 5:10 PM, Ondrej Certik [EMAIL PROTECTED] wrote:

 On Mon, Oct 6, 2008 at 9:49 PM, Alex Clemesha [EMAIL PROTECTED] wrote:
 Hi,


 Note -- if the notebook servers all operated on the same
 data (via a central database or files on the filesystem or something),
 then one could have the best of both worlds... I guess.
 But I doubt I'm putting another month of my life into the
 Sage notebook anytime in the near future.

 As we discussed with William, but for others who are interested,
 we have been designing Knoboo to use a centralized database
 via SQLAlchemy, and it is something that is definitely worth doing.

 The two files here describe our entire data scheme:
 http://trac.knoboo.com/browser/trunk/knoboo/knoboo/database/
 and with SQLAlchemy you can use SQLite, MySQL, PostgreSQL, etc
 as the centralized database behind the scenes.


  Based on your comment about running several servers on the same box, it
  seems that the problem is that the web server cannot handle very many
  concurrent connections.  In that case, the recent query about using sage
  with mod_python or some other higher performance solution might be worth
  looking at again.

 The web server (Twisted) can certainly handle hundreds to thousands of
 connections, read more about that here: twistedmatrix.com, especially
 see all the 'big' companies using Twisted.

 In a web application like the notebook, the webserver should be doing
 only 2 main things: 1) passing snippets of code to another process (the
 'kernel')
 that actually evaluates the code, and 2) talking to a database to preserve
 the input and output (among other less frequent data access actions).

 We have spend a majority of our effort on Knoboo trying to make
 it a robust and scalable web application (like, for example, the
 'frontend' is totally decoupled from the backend 'kernel').

 What's missing from Knoboo, and what is so great about the Sage Notebook,
 is all the awesome usability features like @interact, etc.
 I'm optimistic that we will be able to merge both our best attributes
 in due time.

 Indeed, that'd be awesome. Knoboo is lightweight. I had to stop
 running Sage on my virtual server (with only about 360MB of virtual
 ram) because it was eating several hundreds of megabytes of memory.
 Knoboo is running just fine.

 Ondrej

 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread Ondrej Certik

On Mon, Oct 6, 2008 at 11:24 PM, Timothy Clemans
[EMAIL PROTECTED] wrote:

 Ondrej,

 Did you have to stop supporting Sage altogether or just the Sage Notebook?

Not sure what you mean  by supporting. I was running the sage notebook
from Sage so that anyone can log into it, just like sagenb.org. But my
virtualserver doesn't have enough memory for that. So now I only run
knoboo notebook:

http://knoboo.sympy.org/

This seems to work well. And I just don't run Sage permanently on that
server. I miss the features from the Sage notebook though.

Ondrej

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-06 Thread William Stein

On Mon, Oct 6, 2008 at 10:21 AM, Jason Grout
[EMAIL PROTECTED] wrote:

 William Stein wrote:
 2008/10/6 Thierry Dumont [EMAIL PROTECTED]:
 I would like to know if someone as used Sage with undergraduate
 students. My question is mainly a question about the material which
 would be necessary.

 We are currently building a project (this means: asking for money, doing
 a lot a bureaucracy and so on) on Sage in my University: the idea is to
 start the replacement of  the current commercial system (Maple) by Sage.
 Nowadays, students use Maple on a network of Windows machines.  We would
 like to make a large Sage server so that all the students use the web
 interface.

 I can add to Sage an identification on the ldap server (actually active
 directory) of the University, and Sage accounts will be  created
 automatically.

 The more difficult question for us is: which machine? One can expect to
 have about 200 students using Sage at the same time, with large

 There is no way you can have 200 students all using exactly one
 sage notebook server on the same port *at the same time* and
 have it feel snappy still.   I've done classes with 30 people at once
 and that worked OK -- the server I used was sage.math (16 1.8Ghz
 opterons from 2005).  If you ran say 6 different servers, even on the
 same hardware, at once, that would probably work fairly well.
 Probably using two of the 8-core 32GB of RAM machines you list
 below, with say three sage notebook servers on each, would work
 reasonably well.

 If you publish the relevant notebooks the students need, and
 just redirect students from some master login page to one of those
 six distinct servers, this could work pretty well.

 subgroups of students doing the same thing at the same time. Ok, as it
 is undergraduate students, they will not make very large computations...
 But what about the scalability of Sage, of the web server?

 To emphasize again, I doubt it scales to more than 30 users all hammering
 the server at once.

 We are currently looking at machines with 2x4 core processors, 32 gb of
 RAM, 2x450 Gb of disk (raid1). Larger machines exists, but are extremely
 expensive. We can ask for two machines like this.

 As anyone some experience in this domain?

 sagenb.org obviously has a lot of usage.
 I basically started it as a server from scratch
 1 month ago, and over 750 people created
 accounts on it during the last month.


 Can anyone comment on the possibility of running 25-30 sage sessions
 from the command line on a modest configuration?  In other words, is the
 problem in running 25-30 sage processes, or is the bottleneck in the
 webserver and notebook interface?

If your hardware is pretty good (which the OP's hardware is), the
problem is definitely the webserver and notebook interface.
Running many sage sessions at once gets around this.

Note -- if the notebook servers all operated on the same
data (via a central database or files on the filesystem or something),
then one could have the best of both worlds... I guess.
But I doubt I'm putting another month of my life into the
Sage notebook anytime in the near future.

 Based on your comment about running several servers on the same box, it
 seems that the problem is that the web server cannot handle very many
 concurrent connections.  In that case, the recent query about using sage
 with mod_python or some other higher performance solution might be worth
 looking at again.

Maybe it would be

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: problem with plot3d

2008-10-06 Thread Justin C. Walker


On Oct 6, 2008, at 18:55 , Marshall Hampton wrote:


 This might be related to a recent update for java on 10.5 - ecanton,
 do you know if you got that update?  It came out within the last two
 weeks I think.

The download is dated 9/12, I think.  I have installed it (10.5.5),  
and I can run plot3d() without apparent problems.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
   - Casey Stengel
--




--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: notebook server with server_pool

2008-10-06 Thread Dan Drake
On Mon, 06 Oct 2008 at 03:41PM -0700, William Stein wrote:
  Okay, I just tried using the server_pool option.  I can ssh
  [EMAIL PROTECTED] from [EMAIL PROTECTED]  I can run the sage server
  without the server_pool option from the server account and successfully
  evaluate cells.  However, when the server_pool option gives
  [EMAIL PROTECTED] as the ssh login to use, when I try to evaluate a cell,
  I get an error like:
 
  Traceback (click to the left for traceback)
  ...
  IOError: [Errno 13] Permission denied:
  '/home/server/.sage/sage_notebook/worksheets/myuser/0/code/1.py'

That was exactly the sort of error I was getting. It seemed like no
amount of chmod'ing would fix it.

 You should run a sage notebook that isn't in ~/.sage and
 set the permissions of that directory so that other users
 can read from it.  Otherwise, there is no way this can work.

Ah! That solved it. I might open a ticket for a better docstring -- I
never realized the permissions were related to the 'directory' option.

Dan

-- 
---  Dan Drake [EMAIL PROTECTED]
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] Re: is it possible to show() a variable with it's name = in front of it

2008-10-06 Thread Samuel Gaehwiler

On Oct 7, 12:27 am, kkwweett [EMAIL PROTECTED] wrote:
 'Eval' can do that :

 def ashow(v):
   show($+v+=%s$%latex(eval(v)))

 b=2/3
 ashow('b')

Thank you! That's it.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---