title: Syntax error while trying to run scripts from iPython
body: <p>When I start up iPython in Ubuntu, I normally just run my script like this:</p>
  
  <p><code>run code.py</code></p>
  
  <p>If something fails, I can keep working with the variables and functions defined in the code. The problem starts when I fix the code using a text editor and try running it again. Then I get:</p>
  
  <pre><code>run code.py
  File "&lt;ipython-input-16-b1a3e2c6b7e8&gt;", line 1
      run code.py
             ^
  </code></pre>
  
  <p>The ^ always marks the last character before the .py extension. If I close iPython and reopen it, I can run the code without a problem. This issue only arises when I run a second code from iPython, and the problem is solved by resetting iPython.</p>
  
  <p>It gets very annoying and I can't figure out what is causing this.</p>