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

Zoltán Vörös zvoros at gmail.com
Sun May 12 17:36:16 EDT 2013


Couldn't %%file accept an argument (beyond the filename), which would 
indicate what kind of action is going to be taken? Like
%%file overwrite somefile

%%file append somefile

etc.

On 12/05/13 23:33, Fernando Perez wrote:
> Mmh,  %%overwrite... I didn't like it too much when I first saw it,
> but it's growing on me, and it has the advantage of being unambiguous
> about the destructive nature of the action.
>
> f
>
> On Sun, May 12, 2013 at 2:27 PM, Greg Wilson <gvwilson at third-bit.com> wrote:
>> On 2013-05-12 5:22 PM, Fernando Perez wrote:
>>> On Sun, May 12, 2013 at 8:45 AM, Matt Davis <jiffyclub at gmail.com> wrote:
>>>> I agree renaming %%file to %%savefile would be a good idea so it's clear
>>>> it's a one-way process.
>>> I'm leaning towards 'filesave', as it follows the 'File->Save' pattern
>>> of most menus and will tab-complete from the word 'file', which is the
>>> name we were already using.
>>>
>>> Thoughts?
>> Just did a very unscientific poll: %%overwrite got two votes, %%filesave
>> got zero, and "what?" beat them both :-)
>> - G
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> 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