print get_exec_pars().source if get_exec_pars().source == CommandSource.ui: msg = None start = 0 end = 10.0 steps = 10 else: msg = None start = float(args[0]) end = float(args[1]) steps = int(args[2]) print msg r = lscan (out, sin, start, end, steps, 0.2)