[IPython-User] running "ipython myscript.py"

Alan Wilter Sousa da Silva awilter@ebi.ac...
Tue Mar 8 05:30:23 CST 2011


Hi there,

I have an script in ipython with things like:

    head = !grep '^>' ${tax}*.fasta
    gen = [line.split()[1].split(':')[1] for line in head]

But if doing in bash terminal:

> ipython myscript.py

I got this error:

   File "myscript.py", line 85
     head = !grep '^>' ${tax}*.fasta
            ^
SyntaxError: invalid syntax

WARNING: Failure executing file: <myscript.py>

How to go around it?

Many thanks in advance,

Alan
-- 
Alan Wilter SOUSA da SILVA, D.Sc.
Bioinformatician, UniProt - PANDA, EBI-EMBL
CB10 1SD, Hinxton, Cambridge, UK
+44 1223 49 4588
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110308/2e4a671f/attachment.html 


More information about the IPython-User mailing list