Skip to content

Instantly share code, notes, and snippets.

@chrisgorgo
Created July 7, 2014 12:35
Show Gist options
  • Save chrisgorgo/d3596f1615d29d75ad65 to your computer and use it in GitHub Desktop.
Save chrisgorgo/d3596f1615d29d75ad65 to your computer and use it in GitHub Desktop.
In [4]: !cat /tmp/stefan.py
out_name = "/tmp/bla"
out = open(out_name, 'w')
out.write("asdfasdfasdf\n") #out_str) out.close
out = open(out_name, 'w')
out.write("asdfasdfasdf\n")
out.close()
In [5]: %run /tmp/stefan.py
In [6]: !cat /tmp/bla
asdfasdfasdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment