The problem that I have now in sagecell is that:
* matlab("3**2") --> is not able to spawn the matlab interpreter
* and I don't know how to set matlab as default interpreter for sagecell
wonderful work!
P.S: I am enjoying myself with this evolution of the sample code...
html("<h3>an interactive calculation and plot</h3>")
@interact
def f1(year=slider(1,200,1), c=color_selector((150, 0, 150)),
a=input_box(0, label="start at", type=int),
b=input_box(100, label="end at", type=int),
f=input_box(sin(x)/(2+cos(pi*x/10)), "function"),
):
k1 = year
k2 = factor(year)
print "%s = %s" % (k1, k2)
var('x')
plot(f, (a, b), color = c).show()