First time here? Check out the FAQ!

Ask Your Question
0

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

asked 12 years ago

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!

Preview: (hide)

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 ( 12 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 12 years ago

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.

Preview: (hide)
link

Comments

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

shoibalc gravatar imageshoibalc ( 12 years ago )

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

Jason Grout gravatar imageJason Grout ( 12 years ago )
0

answered 12 years ago

kcrisman gravatar image

updated 12 years ago

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.

Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 2,056 times

Last updated: Sep 19 '12