[IPython-dev] possible cpaste bug
robert.kern at gmail.com
Tue Aug 11 00:39:30 EDT 2009
On 2009-08-10 19:28, John Hunter wrote:
> I just learned about cpaste today watching a showmedo video, and it
> looks great. Of course, I torture tested it with a complex example,
> and it appears to fail on my system. I don't know if cpaste is
> expected to supoprt the full range of files you can "run" in ipython,
> but here is one that failed for me:
> In : IPython.__version__
> Out: '0.11.bzr.r1205'
> I can wget it and run it fine
> In : !wget http://matplotlib.sourceforge.net/plot_directive/mpl_examples/api/radar_chart.py
> --18:27:10-- http://matplotlib.sourceforge.net/plot_directive/mpl_examples/api/radar_chart.py
> => `radar_chart.py'
> Resolving matplotlib.sourceforge.net... 184.108.40.206
> Connecting to matplotlib.sourceforge.net|220.127.116.11|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 6,539 (6.4K) [text/plain]
> 100%[====================================>] 6,539 --.--K/s
> 18:27:10 (299.77 KB/s) - `radar_chart.py' saved [6539/6539]
> In : run radar_chart.py
> but when I try and select it and paste it into ipython on OSX, I have problems
> I was hoping cpaste would support more than the standard paste into an
> ipython shell, eg the requirements of blank lines following indented
> regions, etc, but maybe I am pushing it too hard. Is there some
> reason why cpaste doesn't accept anything that "run" does?
Are you sure that the correct text got fully pasted? I have had problems pasting
moderate amounts of text, a couple of screenfuls, into a terminal on OS X,
particularly with iTerm but also I think with Terminal.app. Some lines go
missing or get repeated. The problem occurs with any program, not just IPython.
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the IPython-dev