Ask Your Question

Is anything special required to setup a moinmoin wiki server with sage cells?

asked 2012-09-18 23:10:45 +0100

shoibalc gravatar image

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 Looking at the raw text hasn't been of much help. Is there a howto somewhere or can anybody give me a few pointers.


edit retag flag offensive close merge delete


For 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]) }}}

shoibalc gravatar imageshoibalc ( 2012-09-19 03:11:06 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-09-19 10:12:13 +0100

Jason Grout gravatar image

This is the plugin we use on our moinmoin wiki:

The installation instructions are at the top of the file.

edit flag offensive delete link more


Exactly what I was looking for. Something similar should make it a useful sphinx plugin as well.

shoibalc gravatar imageshoibalc ( 2012-09-19 10:32:44 +0100 )edit

Feel free to submit a pull request with a sphinx plugin. We also have a drupal module.

Jason Grout gravatar imageJason Grout ( 2012-09-19 11:25:51 +0100 )edit

answered 2012-09-18 23:49:44 +0100

kcrisman gravatar image

updated 2012-09-18 23:54:34 +0100

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 one instance of the sage cell documentation. See also this question which may guide you to useful resources.

edit flag offensive delete link more


I 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]( of the wiki page linked above.

shoibalc gravatar imageshoibalc ( 2012-09-19 00:02:18 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-09-18 23:10:45 +0100

Seen: 1,905 times

Last updated: Sep 19 '12