CoCalc
Sharedsupport / 2015-10-23-201313-interact-control.sagewsOpen in CoCalc

Examples for support purposes...

y = ''
@interact
def f(x=''):
    global y
    if x:
        y = x
        f.x = ''
    print y + ' ' + y
Interact: please open in CoCalc