add tab completion for arguments dynamically

G Jones <[email protected]> Thu, 2 Mar 2017 15:58:03 -0500
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CAGK_ABcT=HV9VtJQfP0CimJnwrVsmmr_0_mDnz=YZ1SNsoZpgA@mail.gmail.com>
Hi,
Is it possible to customize the completion list when typing keyword
arguments?
For example suppose I have a function like:
def myfunc(**kwargs):
    val = kwargs['val']

is there a way to tell ipython that when it sees me type:
myfunc(va<tab>

it suggests "val="?

Thanks,
Glenn

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-dev