[IPython-user] paste frustrations
Tue Mar 3 11:16:24 CST 2009
Just tried your .txt file under windows, it works well.
I've added space at beginning of line 1 and some other lines, it works too.
Under windows doinc ctrl+c and with the mouse doing the paste in the
Are you under another os?
Have you tried with %cpaste? (just in case)
> -----Message d'origine-----
> De : email@example.com [mailto:ipython-user-
> firstname.lastname@example.org] De la part de Robin
> Envoyé : mardi 3 mars 2009 17:40
> À : email@example.com
> Objet : [IPython-user] paste frustrations
> I have some data that was generated as a list of tuples which i
> thought it would be easy to copy and paste between sessions.
> However I have come completely unstuck and am having a lot of trouble
> pasting it into both Ipython and the normal python prompt.
> The data I would like to paste are at
> Initially there was a leading space (how the list was displayed by
> default in ipython) which I removed since I was getting indentation
> errors. (although I thought it was a principle that it should be
> possible to copy and paste objects like lists without such manual
> I can paste different sections OK, but when I try and paste the whole
> lot I get errors like this:
> File "<ipython console>", line 33
> 11.799637880699656, 0.51856981446673678)]
> SyntaxError: invalid syntax
> This is driving me absolutely batty - I have quite a few sets like
> this I was planning to paste in - I'd appreciate any pointers on how
> to load this text data into an ipython variable.
> IPython-user mailing list
More information about the IPython-user