[IPython-dev] what goes wrong with %%file
Stéfan van der Walt
stefan at sun.ac.za
Wed May 15 17:59:31 EDT 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130515/b6c1d1e2/attachment.html>
More information about the IPython-dev
mailing list