I would like to have autocompletion in IPython (Jupyter qtconsole or console) for the following case:
I create a class
class MyClass(object):
def __init__(self, a, b):
self.a = a
self.b = b
and put several objects of this class into a list or dict
my_list = []
my_list.append(MyClass(2,3))
my_list.append(MyClass(9,2))
my_list.append(MyClass(8,4))
Now if I do
my_list[0].TAB
autocompletion is not working.
I would like to see a list of my class attributes and methods. Am I missing something or is this just not support in IPython?
Appreciate your help ...
ipython_config.py
which you most likely will find here~/.ipython/profile_default/ipython_config.py
. If it is not present you can create it withipython profile create
. Since The Big Split IPython does not support profiles anymore. However, the default profile can still be altered. – Rheumatism