all_args = argspec[0][:]
func_arg = argspec[0].pop(0)
func_kwargs = dict(zip(argspec[0], argspec[3] or []))
// Set the transpiled functions as `formatter` so that we can call it
code = pyscript.py2js(func, "formatter")
After Change
if default_values and not any([isinstance(value, Model) for value in default_values]):
raise ValueError("Default value must be a plot object.")
func_kwargs = dict(zip(default_names, default_values))
// Wrap the code attr in a function named `formatter` and call it
// with arguments that match the `args` attr
code = pyscript.py2js(func, "formatter") + "formatter(%s);\n" % ", ".join(default_names)