def execute_example(filename):
<EOL>new_filename = None<EOL>try:<EOL><INDENT>new_filename = prepend_mpl_import(filename)<EOL>retcode = subprocess.call(sys.executable + '<STR_LIT:U+0020>' + new_filename, shell=True)<EOL>if retcode != <NUM_LIT:0>:<EOL><INDENT>print('<STR_LIT>' % filename)<EOL>sys.exit(retcode)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>if new_filename is not None:<EOL><INDENT>os.remove(new_filename)<EOL><DEDENT><DEDENT>
Executes a file as script.

    First prepends matplotlib import