sagemath is a open source mathmatical software. They have a package 'sagecell' that allows one to embed it into a webpage, see
http://wstein.org/edu/2012/1062/sagecell/ for example.
I am now struggling to make the plugin to embed sagecell by myself. But I hope someone more professional can implement it. Here is what I think important:
1. an action plugin to insert the required javascript.
2. the server url can be configured
3. a syntax plugin to create a specific sagecell instant. The template, text, code editor options can be configured by the syntax
Here is the document for embeding sagecell:
https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst
UPDATE: I just made one, but it's not good, see
https://github.com/lainme/dokuwiki-plugin-sagecell