[sage-support] %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino
I created a little worksheet called http://phil4.com/public/sage/Scientific_Notation.sws to illustrate the problem. The single cell with code has this... %hide %auto @interact def _(exponent=(-6..6)): html('The Number: $%f$'%(5 * 10**exponent)) html('In Scientific Notation: $5 \cdot

[sage-support] Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
When I try to type a URL for a worksheet to upload, I can't type. Instead, the browse popup appears and I'm forced to browse for a local file!!! Was the typing in the text field disabled somehow? cs -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread kcrisman
On Jun 20, 11:12 am, Chris Seberino cseber...@gmail.com wrote: I created a little worksheet calledhttp://phil4.com/public/sage/Scientific_Notation.sws to illustrate the problem. The single cell with code has this... %hide %auto @interact def _(exponent=(-6..6)):   html('The Number:

[sage-support] Re: install R packages on OS X

2011-06-20 Thread Kirill Vankov
Once I moved the compiled sage into /usr/local/ I cannot install additional R-packages anymore. Have to move it back. It is better to instruct whoever is going to compile sage on Mac to do so at the final destination folder. K. -- To post to this group, send email to

[sage-support] Re: Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread kcrisman
?? You should be able to type a URL (ending in .sws or .txt or something like that) in the text area. I used that just the other day. What server are you using? Or, if local, what version? This could conceivably be related to the recent updating of the sagenb.org family of servers. On Jun

[sage-support] Re: install R packages on OS X

2011-06-20 Thread kcrisman
On Jun 20, 11:49 am, Kirill Vankov kirill.van...@gmail.com wrote: Once I moved the compiled sage into /usr/local/ I cannot install additional R-packages anymore.  Have to move it back. You shouldn't have to move it anywhere; Sage doesn't have to live anyplace in particular. Is it only after

[sage-support] Re: How to express one expression in terms of another expression?

2011-06-20 Thread Jacare Omoplata
I can also do this in Mathematica the following way, $Assumptions = True; T1 = (t1 - ((u x1)/c^2))/Sqrt[1 - (u^2/c^2)]; T2 = (t2 - ((u x2)/c^2))/Sqrt[1 - (u^2/c^2)]; dT = T2 - T1; FullSimplify[dT /. t2 - dt + t1] (c^2*dt + u*(x1 - x2))/(c^2*Sqrt[1 - u^2/c^2]) FullSimplify[dT /. t2 - dt +

[sage-support] Re: Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
Sorry. Dumb question. Nevermind. You need to type URLs on the second text box...NOT the first box which is for local files. :) cs On Jun 20, 11:04 am, kcrisman kcris...@gmail.com wrote: ??  You should be able to type a URL (ending in .sws or .txt or something like that) in the text area.  

[sage-support] Re: Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Rado
This was fixed by Sebastien during Sage Days 31 (3 days ago). Already got that merged in my repo. http://code.google.com/r/rkirov-flask/source/detail?r=b732dafbff2259938b55873e247213f9a82fe9e3 I will make sure William updates sagenb.com to incorporate those fixes. -- To post to this group,

[sage-support] Re: How to express one expression in terms of another expression?

2011-06-20 Thread Jacare Omoplata
OK, I managed to get it done with .subs_expr. Here is the output. sage: var('x1,t1,x2,t2,dT,dt,u,c',domain=RR);assume(u0);assume(cu); (x1, t1, x2, t2, dT, dt, u, c) sage: T1 = (t1-((u*x1)/(c^2)))/sqrt(1-((u^2)/(c^2))) sage: T2 = (t2-((u*x2)/(c^2)))/sqrt(1-((u^2)/(c^2))) sage: dT = T2-T1 sage:

[sage-support] Comma: just an observation

2011-06-20 Thread Rolandb
Hi, look at the following lines: sage: def comma(): ... print * sage: comma(), #= the , has no effect; this is expected? sage: comma() sage: print comma() #The print commando (function) has effect, and yields None * * * None Roland (version 4.7,

[sage-support] Re: Comma: just an observation

2011-06-20 Thread Volker Braun
The comma operator creates tuples in Python (the surrounding braces actually don't do anything): sage: 1, 2, 3 (1, 2, 3) sage: 1, (1,) A function that just prints something but doesn't call return() will return None. That should make the output clear: sage: def comma(): : print *

[sage-support] Sage Notebook can't evaluate expression in browser

2011-06-20 Thread JiongF
I am running sage on a server and accessing it on a separate computer. When I entered 3+3 in the expression field, then click evaluate, the cell changes to green(running), and never returns a result. But when I took a look at the server, there is little load. Do I need to enable something to get

[sage-support] How delete published worksheet if deleted original in your account folder?

2011-06-20 Thread Chris Seberino
How delete published worksheet if you already deleted the copy in your account folder? Normally I could just unpublish a worksheetbut since I deleted the original version, I can't do that!?!? Sincerely, Chris -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-20 Thread Chris Seberino
I display some Latex commands in HTML on the small worksheet below... http://phil4.com/public/Trig.sws Notice all the trig functions are fine except for tan. Is there a problem with Latex commands that begin with \t for some reason? Sincerely, Chris -- To post to this group, send email to

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino
On Jun 20, 10:41 am, kcrisman kcris...@gmail.com wrote: Type %auto on a line by itself at the beginning of a cell to automatically evaluate the cell when the worksheet is first opened. kcrisman That works one one! Thanks! I made a little worksheet that %auto still doesn't seem to work on...

[sage-support] notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-20 Thread Chris Seberino
http://phil4.com/public/Trig2.sws works perfectly in Firefox but has issues in Chrome and Internet Explorer. The slider of interact widget didn't work for one student in Internet Explorer. The html text was messed up for students using Chrome. It seems multiple lines were on top of each other.

[sage-support] latex_extra_preamble

2011-06-20 Thread pong
In notebook, I want to define \floor{x} as \lfloor x \rfloor so I tried from sage.misc.latex import latex_extra_preamble latex_extra_preamble() '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' %latex $\floor{x}, \lfloor x \rfloor$ shows that \floor{x} does not typeset correctly and the system

[sage-support] Re: latex_extra_preamble

2011-06-20 Thread John H Palmieri
On Monday, June 20, 2011 6:30:07 PM UTC-7, pong wrote: In notebook, I want to define \floor{x} as \lfloor x \rfloor so I tried from sage.misc.latex import latex_extra_preamble latex_extra_preamble() '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' %latex $\floor{x}, \lfloor x

[sage-support] Re: latex_extra_preamble

2011-06-20 Thread pong
Thank you for your tips. I use SAGE 4.7 %latex_debug shows that latex complains about \floor is an undefined control sequence (as if the latex_extra_preamble() has no effect) ! Undefined control sequence. recently read \floor l.31 $\floor {y}$ What did I miss here? On Jun