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

Module: qt.console.magic_helper

MagicHelper - dockable widget showing magic commands for the MainWindow

1 Class

class IPython.qt.console.magic_helper.MagicHelper(name, parent)

Bases: PyQt4.QtGui.QDockWidget

MagicHelper - dockable widget for convenient search and running of magic command for IPython QtConsole.

__init__(name, parent)

Handle search_class selection changes

filter_magic_helper(regex, cls)

Update search_list with magic commands whose text match regex and class match cls. If cls equals ‘any’ - any class matches.


This signal is emitted when user wants to paste selected magic command into the command line.


Emit pasteRequested signal with currently selected item text


Expects data returned by lsmagics query from kernel. Populates the search_class and search_list with relevant items.


This signal is emitted when MagicHelper is ready to be populated. Since kernel querying mechanisms are out of scope of this class, it expects its owner to invoke MagicHelper.populate_magic_helper() as a reaction on this event.


This signal is emitted when user wants to execute selected magic command


Emit runRequested signal with currently selected item text


Handle search_line text changes. The text is interpreted as a regular expression