[IPython-dev] automatic quoting in interactive shell

Thomas Kluyver takowl at gmail.com
Tue Jul 22 16:31:35 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140722/be6d7312/attachment.html>


More information about the IPython-dev mailing list