IPython Documentation

Table Of Contents

Previous topic

Module: qt.console.completion_html

Next topic

Module: qt.console.completion_plain

This Page

Warning

This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: qt.console.completion_lexer

1 Class

class IPython.qt.console.completion_lexer.CompletionLexer(lexer)

Bases: object

Uses Pygments and some auxillary information to lex code snippets for symbol contexts.

__init__(lexer)

Create a CompletionLexer using the specified Pygments lexer.

get_context(string)

Assuming the cursor is at the end of the specified string, get the context (a list of names) for the symbol at cursor position.