ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 19 Sep 2012 04:25:51 -0500Is anything special required to setup a moinmoin wiki server with sage cells?http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/I know how to setup a moinmoin wiki server but I am not sure how I go about setting up one that produces page similar to [http://wiki.sagemath.org/interact/algebra](http://wiki.sagemath.org/interact/algebra). Looking at the raw text hasn't been of much help. Is there a howto somewhere or can anybody give me a few pointers.
Thanks!Tue, 18 Sep 2012 16:10:45 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/Comment by shoibalc for <p>I know how to setup a moinmoin wiki server but I am not sure how I go about setting up one that produces page similar to <a href="http://wiki.sagemath.org/interact/algebra">http://wiki.sagemath.org/interact/algebra</a>. Looking at the raw text hasn't been of much help. Is there a howto somewhere or can anybody give me a few pointers.</p>
<p>Thanks!</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19042#post-id-19042For example, this rst snippet becomes a sagecell. What python modules and/or javascript magic are involved? What do I need to reproduce this?
{{{#!sagecell
@interact
def gfan_browse(p1 = input_box('x^3+y^2',type = str, label='polynomial 1: '), p2 = input_box('y^3+z^2',type = str, label='polynomial 2: '), p3 = input_box('z^3+x^2',type = str,
label='polynomial 3: ')):
R.<x,y,z> = PolynomialRing(QQ,3)
i1 = ideal(R(p1),R(p2),R(p3))
gf1 = i1.groebner_fan()
testr = gf1.render()
html('Groebner fan of the ideal generated by: ' + str(p1) + ', ' + str(p2) + ', ' + str(p3))
show(testr, axes = False, figsize=[8,8*(3^(.5))/2])
}}}
Tue, 18 Sep 2012 20:11:06 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19042#post-id-19042Answer by Jason Grout for <p>I know how to setup a moinmoin wiki server but I am not sure how I go about setting up one that produces page similar to <a href="http://wiki.sagemath.org/interact/algebra">http://wiki.sagemath.org/interact/algebra</a>. Looking at the raw text hasn't been of much help. Is there a howto somewhere or can anybody give me a few pointers.</p>
<p>Thanks!</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?answer=14046#post-id-14046This is the plugin we use on our moinmoin wiki: https://github.com/jasongrout/sagecell/blob/master/contrib/sagecell.py
The installation instructions are at the top of the file.Wed, 19 Sep 2012 03:12:13 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?answer=14046#post-id-14046Comment by shoibalc for <p>This is the plugin we use on our moinmoin wiki: <a href="https://github.com/jasongrout/sagecell/blob/master/contrib/sagecell.py">https://github.com/jasongrout/sagecel...</a></p>
<p>The installation instructions are at the top of the file.</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19041#post-id-19041Exactly what I was looking for. Something similar should make it a useful sphinx plugin as well.Wed, 19 Sep 2012 03:32:44 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19041#post-id-19041Comment by Jason Grout for <p>This is the plugin we use on our moinmoin wiki: <a href="https://github.com/jasongrout/sagecell/blob/master/contrib/sagecell.py">https://github.com/jasongrout/sagecel...</a></p>
<p>The installation instructions are at the top of the file.</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19040#post-id-19040Feel free to submit a pull request with a sphinx plugin. We also have a drupal module.Wed, 19 Sep 2012 04:25:51 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19040#post-id-19040Answer by kcrisman for <p>I know how to setup a moinmoin wiki server but I am not sure how I go about setting up one that produces page similar to <a href="http://wiki.sagemath.org/interact/algebra">http://wiki.sagemath.org/interact/algebra</a>. Looking at the raw text hasn't been of much help. Is there a howto somewhere or can anybody give me a few pointers.</p>
<p>Thanks!</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?answer=14045#post-id-14045Can you use "View Source" in your browser? Anything with "sagecell" in the line is what you could add. There is nothing special about this being a wiki or moinmoin; any webpage can do this. See [one instance of the sage cell documentation](https://github.com/sagemath/sagecell/tree/master/doc). See also [this question](http://ask.sagemath.org/question/1564/sage-cell-server-do-i-really-need-so-many) which may guide you to useful resources.Tue, 18 Sep 2012 16:49:44 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?answer=14045#post-id-14045Comment by shoibalc for <p>Can you use "View Source" in your browser? Anything with "sagecell" in the line is what you could add. There is nothing special about this being a wiki or moinmoin; any webpage can do this. See <a href="https://github.com/sagemath/sagecell/tree/master/doc">one instance of the sage cell documentation</a>. See also <a href="http://ask.sagemath.org/question/1564/sage-cell-server-do-i-really-need-so-many">this question</a> which may guide you to useful resources.</p>
http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19043#post-id-19043I know that method but it is for inserting sagecells in html pages. I am too lazy for that:) I'd rather write restructured text and let moinmoin do the work. See [text version](http://wiki.sagemath.org/interact/algebra?action=raw) of the wiki page linked above.Tue, 18 Sep 2012 17:02:18 -0500http://ask.sagemath.org/question/9331/is-anything-special-required-to-setup-a-moinmoin-wiki-server-with-sage-cells/?comment=19043#post-id-19043