How to run Python script in ipython?
<p>I'm just getting my feet wet with Python v3.5.2. I've installed IPython via Anaconda and am now attempting to run a simple program.</p>

<p>I wrote a simple <code>print("Hello World!")</code> script in a text editor and saved it as "C:\Python code\python_practice_code.py".</p>

<p>I've attempted various ways to execute python_practice_code.py, with and without quotes, and I get one of two errors:</p>

<pre><code>In [34]: %run C:\Python code\python_practice_code.py 
ERROR: File `'C:\Python/py'` not found.
</code></pre>

<p>or </p>

<pre><code>In [35]: ipython 'C:\Python code\python_practice_code.py' 
  File "&lt;ipython-input-35-30b39bc825d7&gt;", line 1
    ipython 'C:\Python code\python_practice_code.py'

SyntaxError: invalid syntax
</code></pre>

<p>What am I doing wrong?</p>