[IPython-dev] IPython (new) + matplotlib report: happy news
Fernando Perez
fperez.net at gmail.com
Thu Sep 16 16:36:14 EDT 2010
On Tue, Sep 14, 2010 at 8:21 AM, John Hunter <jdh2358 at gmail.com> wrote:
>
> How about this as an alternative: on my box, I can drag the "source
> code" link from the browser into my terminal, which by default pastes
> the URL of the referenced *.py into the terminal. If "run" supported
> a -w (web) option, or automatically detected that the URL starts with
> http, it could do a web run of the file. Of course, you may want the
> source code pasted in for illustrative purposes... To support this,
> you could add a -u (url) option to "paste" which assumes the input is
> a url, fetches it, and pastes the contents into ipython. So you could
> type "paste -u" and then drag the link into the terminal, and it would
> fetch it and paste the code into an input block.
Ask and ye shall receive (yes, the url was drag-dropped from the
'source code' link in the mpl page), welcome %loadpy:
http://fperez.org/tmp/iqlab_mpl_loadpy.png
Full credits go to Brian and Evan!
Cheers,
f
More information about the IPython-dev
mailing list