I want to run IPython from the command line. However, I get a syntax error on the first line, importing pylab with the magic function %pylab
is giving a syntax error on the %. The command I am using is simply ipython -i script.py
.
Any ideas how to solve this?