title: Recover lost python code from running script?
body: <p>I am a bit panicked right now, and I hope someone can help.  I spent months writing a python program on Notepad++.  The final bugs were finally worked out and the script was launched in ipython via PowerShell.  Right when I went to push the save button in Notepad++, the program crashed, and when it recovered, all of the code was missing.  It is as if I deleted all of the code and then hit save.  </p>
  
  <p>The python code is still running, and it should for several more hours.  My question: is there a way to recover the code by interrupting the running script and somehow accessing the code from ipython?  It always shows several lines of the code in ipython when the script is broken, and I am hoping I can somehow recover the full code through this.    </p>