def start_current_script():
current_editor = get_workbench().get_editor_notebook().get_current_editor()<EOL>code = current_editor.get_text_widget().get("<STR_LIT:1.0>", "<STR_LIT:end>")<EOL>try:<EOL><INDENT>ast.parse(code)<EOL>py_file = get_workbench().get_current_editor().save_file(False)<EOL>if py_file is None:<EOL><INDENT>return<EOL><DEDENT>start(py_file)<EOL><DEDENT>except Exception:<EOL><INDENT>error_msg = traceback.format_exc(<NUM_LIT:0>)+'<STR_LIT:\n>'<EOL>showerror("<STR_LIT>", error_msg)<EOL><DEDENT>
upload current python script to EV3