On 1/22/12 12:56 PM, Stephen Hartke wrote:
On Sat, Jan 21, 2012 at 12:35 PM, Jason Grout
<jason-s...@creativetrax.com <mailto:jason-s...@creativetrax.com>> wrote:

    Can people test this functionality before we try to add it to the
    sage notebook?  If you have an iOS or Android device, create an
    interact at aleph.sagemath.org <http://aleph.sagemath.org> and try
    manipulating the controls.


The sliders on the n^2 example work great on a Google Nexus S (Android
2.3.7).  It's very cool to have the experience of sliding one's finger.

Cutting and pasting on an Android phone does not work well (I had to
switch to plain text to paste into the code box)..  Will there
eventually be an option to "preload" code into the single cell server?
That would be great for touch devices (where typing is very hard), or
even for embedding Sage functionality into webpages.

In fact, preloading code is one of the main purposes for the Sage cell server embedded into web pages. Check out the examples on utmost.aimath.org, or Rob Beezer's home page at http://buzzard.ups.edu/. You can also see John Travis's excellent examples of using this in WebWork problems (he posted here a while ago on it).

Basically, when you initialize a single cell on a web page, you specify a div for the input. You just put your code in that div, and it is used to initialize the edit area. (Sparse) docs are at https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst -- see particularly the example at the bottom for an example you can cut and paste into a web page (change localhost:8080 to aleph.sagemath.org).

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to