diff --git a/tupak/core/result.py b/tupak/core/result.py index f2b296a02be0d61d0088187f95e9ff0b816309d2..b9e7a64674c71796b57d29404839ed2d26f05db9 100644 --- a/tupak/core/result.py +++ b/tupak/core/result.py @@ -70,6 +70,14 @@ class Result(dict): val = self._standardise_a_string(dictionary[key]) setattr(self, key, val) + def __dir__(self): + """ Adds tab completion in ipython + + See: http://ipython.org/ipython-doc/dev/config/integrating.html + + """ + return self.keys() + def __getattr__(self, name): try: return self[name]