[IPython-user] paste frustrations

Robin robince@gmail....
Tue Mar 3 10:40:21 CST 2009


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.898507409193459628247,
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


More information about the IPython-user mailing list