ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 25 Feb 2012 19:52:00 +0100Is sage supported with javascript?https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/If I am converting Python code to JavaScript, will it preserve the Sage functions and stuff? If so, which conversion tool is best?
Perhaps a better question: More generally, what do people think is the best way to implement Python code w/ Sage on a website?Sun, 19 Feb 2012 15:12:08 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/Comment by SirFibonacci for <p>If I am converting Python code to JavaScript, will it preserve the Sage functions and stuff? If so, which conversion tool is best?</p>
<p>Perhaps a better question: More generally, what do people think is the best way to implement Python code w/ Sage on a website?</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20276#post-id-20276What functions do you use in Sage? I'm no Sage expert, but as far as I know, Sage pulls from lots of different libraries. Sun, 19 Feb 2012 17:53:18 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20276#post-id-20276Answer by Alex Kramer for <p>If I am converting Python code to JavaScript, will it preserve the Sage functions and stuff? If so, which conversion tool is best?</p>
<p>Perhaps a better question: More generally, what do people think is the best way to implement Python code w/ Sage on a website?</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?answer=13281#post-id-13281If what you want to do is 'embed' Sage-specific Python code on a website, execute that code, and have the output of that code displayed, the Sage Cell Server (demo at [aleph.sagemath.org](http://aleph.sagemath.org)) exists for just this purpose. The current repository is located at [github.com/sagemath/sagecell/](https://github.com/sagemath/sagecell/) and instructions for embedding into arbitrary HTML files are located at [github.com/sagemath/sagecell/blob/master/doc/embedding.rst](https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst). The example at the very bottom of that page is probably the easiest way to get started.Sun, 19 Feb 2012 23:57:03 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?answer=13281#post-id-13281Comment by Shashank for <p>If what you want to do is 'embed' Sage-specific Python code on a website, execute that code, and have the output of that code displayed, the Sage Cell Server (demo at <a href="http://aleph.sagemath.org">aleph.sagemath.org</a>) exists for just this purpose. The current repository is located at <a href="https://github.com/sagemath/sagecell/">github.com/sagemath/sagecell/</a> and instructions for embedding into arbitrary HTML files are located at <a href="https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst">github.com/sagemath/sagecell/blob/master/doc/embedding.rst</a>. The example at the very bottom of that page is probably the easiest way to get started.</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20247#post-id-20247I am sorry. I just realised that I can use the aleph server on my webpage. It took me less than a minute to do it. I made that comment thinking that a sage server has to be setup on my apache server to embed a sage cell.Sat, 25 Feb 2012 19:52:00 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20247#post-id-20247Comment by Jason Grout for <p>If what you want to do is 'embed' Sage-specific Python code on a website, execute that code, and have the output of that code displayed, the Sage Cell Server (demo at <a href="http://aleph.sagemath.org">aleph.sagemath.org</a>) exists for just this purpose. The current repository is located at <a href="https://github.com/sagemath/sagecell/">github.com/sagemath/sagecell/</a> and instructions for embedding into arbitrary HTML files are located at <a href="https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst">github.com/sagemath/sagecell/blob/master/doc/embedding.rst</a>. The example at the very bottom of that page is probably the easiest way to get started.</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20273#post-id-20273@Shashank - how much simpler are you wanting? You copy and paste several lines from the example page and that's it to embed a Sage compute box into a webpage.Mon, 20 Feb 2012 23:00:11 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20273#post-id-20273Comment by kcrisman for <p>If what you want to do is 'embed' Sage-specific Python code on a website, execute that code, and have the output of that code displayed, the Sage Cell Server (demo at <a href="http://aleph.sagemath.org">aleph.sagemath.org</a>) exists for just this purpose. The current repository is located at <a href="https://github.com/sagemath/sagecell/">github.com/sagemath/sagecell/</a> and instructions for embedding into arbitrary HTML files are located at <a href="https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst">github.com/sagemath/sagecell/blob/master/doc/embedding.rst</a>. The example at the very bottom of that page is probably the easiest way to get started.</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20274#post-id-20274@Alex - I think you can do what Shashank wants as well with this, right?Mon, 20 Feb 2012 12:52:44 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20274#post-id-20274Comment by Shashank for <p>If what you want to do is 'embed' Sage-specific Python code on a website, execute that code, and have the output of that code displayed, the Sage Cell Server (demo at <a href="http://aleph.sagemath.org">aleph.sagemath.org</a>) exists for just this purpose. The current repository is located at <a href="https://github.com/sagemath/sagecell/">github.com/sagemath/sagecell/</a> and instructions for embedding into arbitrary HTML files are located at <a href="https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst">github.com/sagemath/sagecell/blob/master/doc/embedding.rst</a>. The example at the very bottom of that page is probably the easiest way to get started.</p>
https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20275#post-id-20275That is nice, but wish it was some what simpler. It would be nice if there was a simple way of embedding a sage cell in webpage just for sage marketing purpose.Mon, 20 Feb 2012 00:58:16 +0100https://ask.sagemath.org/question/8722/is-sage-supported-with-javascript/?comment=20275#post-id-20275