re. decorators, I found this example quite illustrative
def memoize(f):
    #this is a decorator eg.
    cache = {}

    def helper(x):
        #lexical closure fn.
        if x not in cache:
            cache[x] = f(x)
        return cache[x]

    return helper

#fib = memoize(fib)
# <=>
@memoize
def fib(n):
    #...

re. The HTML GUI in the notebook, I too am interested in this. I
started off using TurboGears2 for my application but found it slow
going. So now I've switched to SAGE because I wanted the twisted
protocol. I haven't had a chance to look into how the Sage notebook is
built yet as I'm still just running the binary to test out Sage but
I'll check back here in a few days.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to