# Module: `qt.console.completion_html`

A navigable completer for the qtconsole

## 2 Classes

class `IPython.qt.console.completion_html.``SlidingInterval`(maximum=1, width=6, minimum=0, sticky_lenght=1)

  Bases: `object`

  a bound interval that follows a cursor

  internally used to scoll the completion view when the cursor try to go beyond the edges, and show ‘...’ when rows are hidden

  `__init__`(maximum=1, width=6, minimum=0, sticky_lenght=1)

    Create a new bounded interval

    any value return by this will be bound between maximum and minimum. usual width will be ‘width’, and sticky_length set when the return interval should expand to max and min

  `current`

    current cursor position

  `start`

    begiiing of interval to show

  `stop`

    end of interval to show

class `IPython.qt.console.completion_html.``CompletionHtml`(console_widget)

  Bases: `PyQt4.QtGui.QWidget`

  A widget for tab completion, navigable by arrow keys

  `__init__`(console_widget)

    Create a completion widget that is attached to the specified Qt text edit widget.

  `cancel_completion`()

    Cancel the completion

    should be called when the completer have to be dismissed

    This reset internal variable, clearing the temporary buffer of the console where the completion are shown.

  `eventFilter`(obj, event)

    Reimplemented to handle keyboard input and to auto-hide when the text edit loses focus.

  `select_down`()

    move cursor down

  `select_left`()

    move cursor left

  `select_right`()

    move cursor right

  `select_up`()

    move cursor up

  `show_items`(cursor, items)

    Shows the completion widget with ‘items’ at the position specified by ‘cursor’.

## 1 Function

`IPython.qt.console.completion_html.``html_tableify`(item_matrix, select=None, header=None, footer=None)

  returnr a string for an html table