[IPython-user] paste frustrations

Laurent Dufréchou laurent.dufrechou@gmail....
Tue Mar 3 11:16:24 CST 2009


Hi robin,
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
terminal.
Are you under another os?
Have you tried with %cpaste? (just in case)

Laurent

> -----Message d'origine-----
> De : ipython-user-bounces@scipy.org [mailto:ipython-user-
> bounces@scipy.org] De la part de Robin
> Envoyé : mardi 3 mars 2009 17:40
> À : ipython-user@scipy.org
> Objet : [IPython-user] paste frustrations
> 
> Hi,
> 
> 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
> http://www.robince.net/robince/data.txt
> 
> 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
> intervention).
> 
> 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
> 
> (5.898507409(5.898507409(5.898507409(5.898507409(5.898507409(5.89850740
> 9193459628247,
> 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.
> 
> Cheers
> 
> Robin
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-user mailing list