title: Nohup failing with Anaconda ipython
body: <p>I am trying to run a code using "nohup" command with Anaconda IPython.
  My code runs fine (for hours) if I run it inside ipython environment like;</p>
  
  <pre><code>irsacf00-debian:~/WISE_AP&gt; ipython
  Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19) 
  Type 'copyright', 'credits' or 'license' for more information
  IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
  
  In [1]: %run WISE_PHOT_052918_MODULER_IRSACF.py
  </code></pre>
  
  <p>However, when I try to run the same code using "nohup" it breaks down with the following error message (last 2 lines). This is copy pasted from output file.</p>
  
  <pre><code>[[0;31mOSError^[[0m: [Errno 5] Input/output error
  
  In [2]: Do you really want to exit ([y]/n)?
  </code></pre>
  
  <p>My nohup command looks like this;</p>
  
  <pre><code>irsacf00-debian:~/WISE_AP&gt; nohup ipython &lt;input_file&gt; output_file &amp;
  </code></pre>
  
  <p>My input file looks like this;</p>
  
  <pre><code>%run /home/aprakash/WISE_AP/WISE_PHOT_052918_MODULER_IRSACF.py 
  </code></pre>
  
  <p>I can't figure out where the code is getting stuck. Thanks for help!</p>
  
  <p>Best,
  Abhi</p>