def complete(self, text, line, cursor_pos, block=None):
        content = dict(text=text, line=line, block=block, cursor_pos=cursor_pos)
        msg = self.session.msg('complete_request', content)
        self._queue_request(msg)
        return msg['header']['msg_id']
Tab complete text in the kernel's namespace.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/zmq/kernelmanager.py/ShellSocketChannel.complete