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

2011-06-27 Thread Rolf
> Is this going away or is this a desired thing? I have no idea. I hope someone who coded the notebook will answer this. R. -- 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 op

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

2011-06-22 Thread Rolf
> Thanks.  Does your version automatically start up when you upload the > worksheet? Yes, as I said it starts automatically but it must have no descriptive comment above the cell. That is a worksheet with only one naked cell and no description in it. That's why I suggested to start a new worksheet

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

2011-06-22 Thread Rolf
> "x is %d" % y is standard Python for having variables in strings. Thank, that helped a lot. In Python documentation I found the solution. > > html('In Scientific Notation: ${%d} \cdot 10^{%d}$'%base%exponent) > > > doesn't work either. > > I didn't see that inhttp://phil4.com/public/Sci.sws. I

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

2011-06-21 Thread Rolf
>   html('The Number: $%f$'%(5 * 10**exponent)) >   html('In Scientific Notation: $5 \cdot 10^{%d}$'%exponent) This question may sound somehow out of place, but maybe you can offer some help. Where in the documentation did you find something about this fancy notation to include variables into your

[sage-support] Re: ValueError: setting an array element with a sequence. when plotting R data

2011-06-08 Thread Rolf
> Both cases should work if you use > > plot(f, (x,90,110)) > plot(f, (x,0,2)) > ... and in fact they do. I feel, this should be documented somewhere. I used http://tutorial.sagenb.org/pub/4/ for reference. Best regards R. -- To post to this group, send email to sage-support@googlegroups.com T

[sage-support] Re: ValueError: setting an array element with a sequence. when plotting R data

2011-06-07 Thread Rolf
> sage: v=map(ndistribpts,range(50,151)) > sage: line(v,ymin=0,ymax=.02) > > The command 'points' might also give what you want, without connecting > the points. Thank you for this enhancement. The curve looks nice. However only in this example the bell-shape can be appreciated. It doesn't work h

[sage-support] Re: ValueError: setting an array element with a sequence. when plotting R data

2011-06-07 Thread Rolf
Problem solved! The simple '._sage_()' does the trick. It converts data from R into something that can be handled by Python or Sage. def ndistribpts(x): return (x,r.dnorm(x,mean=100,sd=25)._sage_()) def cube(x): return (x,x*x*x) v=map(ndistribpts,range(98,103)) scatter_plot(v) Works though I'm s

[sage-support] ValueError: setting an array element with a sequence. when plotting R data

2011-06-07 Thread Rolf
There is a well known problem (http://ask.sagemath.org/question/192/ compiling-r-with-png-support) with plotting in R that apparently some people successfully eliminated by installing the libraries mentioned and recompiling. I didn’t succeed, so I'm trying a work around and stumbled over an other

[sage-support] Re: Cython Problem

2011-05-30 Thread Rolf
> sudo apt-get install build-essential .. did install some additional modules. I cannot say whether actually necessary as it worked already. It was probably silly to assume that all build essentials are installed by default. Thank you for your help -- To post to this group, send email to sage-s

[sage-support] Re: Cython Problem

2011-05-30 Thread Rolf
On May 30, 1:48 pm, ancienthart wrote: > I know it's a silly question, but do you have the standard c++ libraries > installed? > > sudo apt-get install g++ > > Joal Heagney Thank you so much for this "silly" question :-) Problem solved. -- To post to this group, send email to sage-support@go

[sage-support] Cython Problem

2011-05-29 Thread Rolf
I tried to run cython from my notebook by typing these few lines adapted from from (http://docs.cython.org/src/quickstart/build.html) %cython cdef extern from "math.h": double sin(double) cdef double f(double x) except *: return sin(x**2) def integgratex(double a, double b, int N):

[sage-support] Re: Export notebook interact java applets

2011-05-19 Thread Rolf
Thank you very much for these helpful replies. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: htt

[sage-support] Export notebook interact java applets

2011-05-17 Thread Rolf
Hello, I just learned that @interact provides a fantastic tool to test mathematical models. I understand that these interactive frames are some sort of Java applets. I wonder If there is a way to export these applets and to make it usable on an ordinary webpage. I know a similar question has been

[sage-support] sse2 problem resolved

2011-03-06 Thread Rolf
I encountered a problem when starting sage. I received the error message listed below and sage did not start. As stated removal of the text file solved the problem provisionally. Sage did start and elementary functions could be performed but not for instance simple plotting. Installing several vers