<p dir="ltr">On May 15, 2013 11:26 PM, "Fernando Perez" <<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>> wrote:<br>
> I'm also -1 on cat for this, we don't want to have to explain shell<br>
> redirection to understand an ipython magic.</p>
<p dir="ltr">Point taken, but the magics already behave in a shell-like way, so I don't think it's much of a leap. </p>
<p dir="ltr">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. </p>
<p dir="ltr">E.g., it might be easier to have</p>
<p dir="ltr">%%pipe /tmp/log<br>
print '''<br>
Whatever you want in the file<br>
'''</p>
<p dir="ltr">Stéfan <br>
</p>