Forums

Not able to run a script in Ipython3.3 console

I'm using the Ipython3.3 console.

In [16]: ls

Dropbox/ README.txt* helloworld.py s1_cloud.py

In [17]: python helloworld.py

File "<ipython-input-17-f2927f6e69fb>", line 1 python helloworld.py ^ SyntaxError: invalid syntax

In [18]:

I can see in the root folder is the helloworld.py script, but when I try to execute it with "python helloworld.py" it returns an error. How should I do it? Thanks

If you're in an IPython console, you can run a script with:

%run helloworld.py

You can also do it from a bash console with:

ipython helloworld.py