[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread rvaug...@gmail.com
OK, here's what I did and here's what happened. ssh'd to Sage server as normal (non-root) user, started sage. At sage prompt: sage: notebook(address="",open_viewer=False) This produced the output appended. Then, in a browser on a separate Linux machine, I entered a URL of http://128.N.NN.NNN:8

[sage-support] Displaying lists on cli

2009-12-22 Thread Nikos Apostolakis
Hello, when displaying a long list on the command line, sage displays one item per line, and often this is not very convenient for quick inspection. Is there a way to change this behaviour, so that as many elements as possible are displayed per line? TIA, Nikos -- To post to this group, send e

Re: [sage-support] Displaying lists on cli

2009-12-22 Thread Minh Nguyen
Hi Nikos, On Wed, Dec 23, 2009 at 2:38 AM, Nikos Apostolakis wrote: > Is there a way to change this behaviour, so that as many > elements as possible are displayed per line? You could try using the print statement: [mv...@sage mvngu]$ /scratch/mvngu/usr/bin/sage/sage

[sage-support] matrix exponential and logarith in sage?

2009-12-22 Thread Kjetil Halvorsen
subject says it all!! Kjetil -- "... an entire human genome would fit on a music CD." --- www.thinkgene.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 th

[sage-support] notebook in sage

2009-12-22 Thread Kjetil Halvorsen
Hola! Long ago I complaines that on my ubuntu 9.04 & sage 4.0 installation the notebook interface did'nt work. Now I have upgaraded to ububtu 9.10 and sage 4.2, and everything works out of the box. Thanks! Kjetil -- "... an entire human genome would fit on a music CD." --- www.thinkgene.com

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 6:55 AM, rvaug...@gmail.com wrote: > OK, here's what I did and here's what happened. > > ssh'd to Sage server as normal (non-root) user, started sage.  At sage > prompt: > > sage: notebook(address="",open_viewer=False) > > This produced the output appended. > > Then, in a b

[sage-support] Re: matrix exponential and logarith in sage?

2009-12-22 Thread Yann
some exponentials exist: sage: M = matrix(SR,2,[1,0,3,x]) sage: M.exp() [ e0] [-3*(e - e^x)/(x - 1) e^x] sage: M = matrix(CDF,2,[1+i,0,3,i]) sage: M.exp() [ 1.46869393992 + 2.28735528718*I 0] [ 2.78517490214

Re: [sage-support] matrix exponential and logarith in sage?

2009-12-22 Thread Minh Nguyen
Hi Kjetil, On Wed, Dec 23, 2009 at 3:51 AM, Kjetil Halvorsen wrote: > subject says it all!! If m is a matrix, you could do "m.exp?" to get help on matrix exponential. You could do m.exp() or exp(m): -- | Sage Version 4.2.1, Rel

[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread rvaug...@gmail.com
> You are doing everything right on generic system without a firewall. > Maybe your remote system has a firewall or something. By "remote system" you mean the 'client', ie, *not* the machine on which Sage is running? On Dec 22, 11:56 am, William Stein wrote: > On Tue, Dec 22, 2009 at 6:55 AM, r

[sage-support] Re: matrix exponential and logarith in sage?

2009-12-22 Thread Jason Grout
Minh Nguyen wrote: > Hi Kjetil, > > On Wed, Dec 23, 2009 at 3:51 AM, Kjetil Halvorsen > wrote: >> subject says it all!! > > If m is a matrix, you could do "m.exp?" to get help on matrix > exponential. You could do m.exp() or exp(m): And here's a ticket for making e^m work too: http://trac.sa

[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread Marshall Hampton
Perhaps it would work to do: sage: notebook(address="",open_viewer=False, secure = True) and then use https://128.N.NN.NNN:8000/ instead of http. But William understands these issues better than I. -M. Hampton On Dec 22, 11:11 am, "rvaug...@gmail.com" wrote: > > You are doing everything rig

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 9:11 AM, rvaug...@gmail.com wrote: >> You are doing everything right on generic system without a firewall. >> Maybe your remote system has a firewall or something. > > By "remote system" you mean the 'client', > ie, *not* the machine on which Sage is running? By remote sys

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 9:45 AM, Marshall Hampton wrote: > Perhaps it would work to do: > > sage: notebook(address="",open_viewer=False, secure = True) > > and then use > > https://128.N.NN.NNN:8000/ > > instead of http.  But William understands these issues better than > I. If the OP has a firew

[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread rvaug...@gmail.com
First of all, thanks *very much* for all the help with this. It is greatly appreciated. I just got it to work remotely after disabling the firewall on the machine running Sage and then re-booting. That is considerable progress. However: I'm obviously not crazy about running my machine w/ the fire

[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread rvaug...@gmail.com
First of all, thanks *very much* for all the help with this. It is greatly appreciated. I just got it to work remotely after disabling the firewall on the machine running Sage and then re-booting. That is considerable progress. However: I'm obviously not crazy about running my machine w/ the fire

[sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread rvaug...@gmail.com
First of all, thanks *very much* for all the help with this. It is greatly appreciated. I just got it to work remotely after disabling the firewall on the machine running Sage and then re-booting. That is considerable progress. However: I'm obviously not crazy about running my machine w/ the fire

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread Dr. David Kirkby
rvaug...@gmail.com wrote: > First of all, thanks *very much* for all the help with this. > It is greatly appreciated. > > I just got it to work remotely after disabling the firewall > on the machine running Sage and then re-booting. > That is considerable progress. > > However: I'm obviously not

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 10:26 AM, rvaug...@gmail.com wrote: > First of all, thanks *very much* for all the help with this. > It is greatly appreciated. > > I just got it to work remotely after disabling the firewall > on the machine running Sage and then re-booting. > That is considerable progress

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 10:26 AM, rvaug...@gmail.com wrote: > First of all, thanks *very much* for all the help with this. > It is greatly appreciated. > > I just got it to work remotely after disabling the firewall > on the machine running Sage and then re-booting. > That is considerable progress

[sage-support] Creating accounts for a Sage server

2009-12-22 Thread Dr. David Kirkby
I see in the help(notebook) that one can have a list of accounts where password less ssh is permitted. (i.e. accounts which have entries in /etc/passwd) How do those unix accounts relate to an Sage account set up by a user? If I create accounts on a unix system sage1, sage2 ... sage 10, and 1

[sage-support] What does that error message mean?

2009-12-22 Thread Simon King
Dear Sage support, I just had got a very strange error message. I had problems to do some factorisation in a multi-polynomial ring. It took too long, so I interrupted it with Ctrl-C. Later, another factorisation was attempted, but sage (version 4.2.1) was immediately leaving. Its last words: co

Re: [sage-support] Creating accounts for a Sage server

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 11:06 AM, Dr. David Kirkby wrote: > I see in the > > help(notebook) > > that one can have a list of accounts where password less ssh is permitted. > (i.e. > accounts which have entries in /etc/passwd) > > How do those unix accounts relate to an Sage account set up by a use

[sage-support] Re: notebook in sage

2009-12-22 Thread Kjetil Halvorsen
Responding myself ... while the notebook is very nice, something is strange. I give the command search_doc("trigonometry") and up comes some links to help files. Then i click on one of them, and the file comes up, BUT IT TAKES a very long time --- much longer than loading link on the web! that is s

[sage-support] converting between expressions in different forms

2009-12-22 Thread Kjetil Halvorsen
Hola! I am still learning sage, and find the documentation usefull, but some questions I can't find the answer there... When I have got an expression xontaining exponentials, and I can recognice the elements of the exponential form for sin, cos, etc, how can I get that automatically in trigonometr

Re: [sage-support] Creating accounts for a Sage server

2009-12-22 Thread Dr. David Kirkby
William Stein wrote: > On Tue, Dec 22, 2009 at 11:06 AM, Dr. David Kirkby > wrote: >> I see in the >> >> help(notebook) >> >> that one can have a list of accounts where password less ssh is permitted. >> (i.e. >> accounts which have entries in /etc/passwd) >> >> How do those unix accounts relate

Re: [sage-support] Creating accounts for a Sage server

2009-12-22 Thread William Stein
On Tue, Dec 22, 2009 at 12:24 PM, Dr. David Kirkby wrote: > William Stein wrote: >> On Tue, Dec 22, 2009 at 11:06 AM, Dr. David Kirkby >> wrote: >>> I see in the >>> >>> help(notebook) >>> >>> that one can have a list of accounts where password less ssh is permitted. >>> (i.e. >>> accounts which

Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread Alex Ghitza
On Tue, 22 Dec 2009 10:26:41 -0800 (PST), "rvaug...@gmail.com" wrote: > > However: I'm obviously not crazy about running > my machine w/ the firewall disabled. > Is there a way to config the firewall such that > the firewall is enabled AND Sage can be run remotely? > Possibly specify WWW (HTTP)

[sage-support] Re:Running Sage remotely via a web browser: How?

2009-12-22 Thread Pablo Angulo
> I don't use Linux, so I don't know the syntax for the firewall. But any > half-reasonable firewall will allow you to open only a specific port. I'd rather allow the host to communicate only with the sage server using a filter for the ip. Almost any linux distro has iptables installed, and it's v

Re: [sage-support] Creating accounts for a Sage server

2009-12-22 Thread Dr. David Kirkby
William Stein wrote: cd /home/someuser su - someuser /home/someuser/sage-4.2/sage & >>> That's a good idea. >> Does the password less ssh login offer any advantages over that? >> > > Huge! It means the worksheet processes are a different user (on a > different computer if you want

Re: [sage-support] Re:Running Sage remotely via a web browser: How?

2009-12-22 Thread Dr. David Kirkby
Pablo Angulo wrote: >> I don't use Linux, so I don't know the syntax for the firewall. But any >> half-reasonable firewall will allow you to open only a specific port. > I'd rather allow the host to communicate only with the sage server using > a filter for the ip. > > Almost any linux distro has

[sage-support] Symbolic convolution usage Sage

2009-12-22 Thread Maxim
Hi all! I'm trying to do something which I haven't seen any examples so far : symbolic convolution. I know I can use lists or Piecewise defined functions to do a convolution, but here my interest is the symbolic solution. To illustrate an example, I would like to make a function that would do som

[sage-support] Re: The default number of digits displayed

2009-12-22 Thread Mike Witt
On Dec 21, 9:04 am, Jason Grout wrote: > Mike Witt wrote: > > Is there a way to control the default number of "display digits." In > > other words, suppose I have something like e^k and k ends up taking on > > the value (1.23*10^-12)*t. Then when I display this, either with print > > or by taking

Re: [sage-support] Re: notebook in sage

2009-12-22 Thread Tim Joseph Dumol
Hey, On Wed, Dec 23, 2009 at 3:57 AM, Kjetil Halvorsen wrote: > Responding myself ... while the notebook is very nice, something is > strange. I give the command > search_doc("trigonometry") > and up comes some links to help files. Then i click on one of them, and > the file comes up, BUT IT TAKE

[sage-support] Re: Symbolic convolution usage Sage

2009-12-22 Thread kcrisman
> I'm trying to do something which I haven't seen any examples so far : > symbolic convolution. I know I can use lists or Piecewise defined > functions to do a convolution, but here my interest is the symbolic > solution. Just to encourage you, this would be great if we had it, so keep trying and