# Tiddlywiki and Sage Cell Server

Hi,

Has anyone been successful in embedding a Sage cell in a Tiddlywiki wiki? Any help would be appreciated.

Thanks, Matthew Henderson

Tiddlywiki and Sage Cell Server

Hi,

Has anyone been successful in embedding a Sage cell in a Tiddlywiki wiki? Any help would be appreciated.

Thanks, Matthew Henderson

1

I think I would probably create a tiddly plugin. You basically need to do two things:

edit the html file to include step 1 of http://sage.math.washington.edu/home/... (or make a plugin to do this)

figure out how to get a function called anytime a tiddler was done being edited, and make any class 'sage' divs into sagecells using something like the makeSagecell command above.

Reading a bit more I think I do have to write a plugin but I was hoping to avoid it because Tiddlywiki makes it easy to add the Sage code to the header of the wiki. The only problem I can see is how to add raw HTML to the wiki. A similar problem is mentioned here http://blog.ssokolow.com/archives/2011/10/16/floating-flattr-buttons-in-tiddlywiki/

I looked at macros and other things, and it still seemed that the best solution was a plugin. The thing is that you have to be able to give a block of code and you have to run some javascript on that block of code when a tiddler is saved. I don't know a lot about tiddlywiki, though---maybe there is a way to do that without writing a plugin?

I think you're right. It doesn't look too hard so I think I'll give it a shot.

Asked: **
2013-01-18 04:00:06 -0500
**

Seen: **344 times**

Last updated: **Jan 18 '13**

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

share not working in sage cell

problem with encoding & german characters

sage vs. maxima for symbolic computation

Where should I put a user defined function?

perfomance: GAP code vs SAGE code

Interactive solving differential equations with MAXIMA's desolve

How can I save an image from sage plot ?

Sagecell kwargs no longer works

Transform a list of coefficients to polynomial (in GF(2^8)) [closed]

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

Does it accept arbitrary HTML somehow? That would do it.

It does but it translates:<html>

</html> into !!