Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
MagicHelper - dockable widget showing magic commands for the MainWindow
Bases: PyQt4.QtGui.QDockWidget
MagicHelper - dockable widget for convenient search and running of magic command for IPython QtConsole.
Handle search_class selection changes
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