[IPython-dev] what goes wrong with %%file

Fernando Perez fperez.net at gmail.com
Wed May 15 21:22:29 EDT 2013


for reference, merged: https://github.com/ipython/ipython/pull/3317

On Wed, May 15, 2013 at 4:38 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> Make a gist for it, pop a link to it in the extensions index!
>
> https://github.com/ipython/ipython/wiki/Extensions-Index
>
> Cheers,
>
> f
>
> On Wed, May 15, 2013 at 2:59 PM, Stéfan van der Walt <stefan at sun.ac.za> wrote:
>> On May 15, 2013 11:26 PM, "Fernando Perez" <fperez.net at gmail.com> wrote:
>>> I'm also -1 on cat for this, we don't want to have to explain shell
>>> redirection to understand an ipython magic.
>>
>> Point taken, but the magics already behave in a shell-like way, so I don't
>> think it's much of a leap.
>>
>> Perhaps a generic redirect magic would more clearly identify what is
>> happening. This would also be a nice way of dumping Python output to file or
>> stdout.
>>
>> E.g., it might be easier to have
>>
>> %%pipe /tmp/log
>> print '''
>> Whatever you want in the file
>> '''
>>
>> Stéfan
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>



More information about the IPython-dev mailing list