[IPython-dev] possible cpaste bug
Gökhan Sever
gokhansever at gmail.com
Mon Aug 10 19:35:33 EDT 2009
On Mon, Aug 10, 2009 at 6:28 PM, John Hunter <jdh2358 at gmail.com> 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 [7]: IPython.__version__
> Out[7]: '0.11.bzr.r1205'
>
> I can wget it and run it fine
>
> In [10]: !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... 216.34.181.96
> Connecting to matplotlib.sourceforge.net|216.34.181.96|: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 [11]: 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?
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
John,
It works here without any problems. Just make sure you copy the file content
correctly.
For some unknown reason, in the first try it has been copied erroneously as:
: f3_base = [0.01, 0.02, 0.85, 0.19, 0.05, 0.10, 0.00, 0.00, 0.00]
: f3_CO = [0.01, 0.01, 0.79, 0.10, 0.00, 0.05, 0.00, 0.31, 0.00]
: f3_O3 = [0.01, 0.02, 0.86, 0.27, 0.16, 0.19, 0.
: f3_both = [0.01, 0.02, 0.71, 0.24, 0.13, 0.16, 0.
later I manually copied the whole content and cpaste worked properly showing
the resulting figures.
PS: I use the same IPython rev.
--
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20090810/5c69811b/attachment.html>
More information about the IPython-dev
mailing list