[IPython-dev] automatic quoting in interactive shell

Fernando Perez fperez.net at gmail.com
Tue Jul 22 17:40:18 EDT 2014

And the point is that, even for users who do want autocall to be on, in
most cases they *don't* want it to always auto-quote, since there are many
valid use cases where you want to call functions on non-string arguments.

So as Thomas says, this sounds like a fairly narrowly-targeted extension
that you should write as custom code for a profile you use in scenarios
where such functionality makes sense for you. But it's not a generic
feature for all of IPython.



On Tue, Jul 22, 2014 at 1:31 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 22 July 2014 12:59, Brian Wylie <briford.wylie at gmail.com> wrote:
>>  the thing that I can't find is how to turn on 'automatic quoting' by
>> default (see below)... it works if I put a comma at the beginning of the
>> line but obviously you don't want to require users to do/know that..
> I don't think that's a feature we have, and I don't think we especially
> want to extend the functionality of autocall - it was disabled by default
> because it's too liable to confuse people new to Python. If you want to do
> it yourself as an extension, I think this is the best place to start
> looking at the code:
> https://github.com/ipython/ipython/blob/master/IPython/core/prefilter.py#L604
> Thomas
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140722/2ff8c5ec/attachment.html>

More information about the IPython-dev mailing list