Ask Your Question
0

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

asked 2012-09-18 16:10:45 -0500

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 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!

edit retag flag offensive close merge delete

Comments

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-18 20:11:06 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-09-19 03:12:13 -0500

Jason Grout gravatar image

This is the plugin we use on our moinmoin wiki: https://github.com/jasongrout/sagecel...

The installation instructions are at the top of the file.

edit flag offensive delete link more

Comments

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

shoibalc gravatar imageshoibalc ( 2012-09-19 03:32:44 -0500 )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 04:25:51 -0500 )edit
0

answered 2012-09-18 16:49:44 -0500

kcrisman gravatar image

updated 2012-09-18 16:54:34 -0500

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

Comments

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](http://wiki.sagemath.org/interact/algebra?action=raw) of the wiki page linked above.

shoibalc gravatar imageshoibalc ( 2012-09-18 17:02:18 -0500 )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

Stats

Asked: 2012-09-18 16:10:45 -0500

Seen: 1,463 times

Last updated: Sep 19 '12