### Navigation

- index
- modules |
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »

# 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.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »