Skip to content

Commit

Permalink
Warning in code. qtconsole ssh -X
Browse files Browse the repository at this point in the history
Put warning in code not to remove an action needed when ssh -X.

"All magics..." menu  should be autopopulated at startup, but is not
when X forwarding, Warn in code that inserting  'update all magic menu'
action in this same menu is not as useless as it may seem
  • Loading branch information
Carreau authored and fperez committed Nov 27, 2011
1 parent 346da30 commit 0433ea7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IPython/frontend/qt/console/mainwindow.py
Expand Up @@ -622,8 +622,10 @@ def init_magic_menu(self):
self.magic_menu = self.menuBar().addMenu("&Magic")
self.all_magic_menu = self.magic_menu.addMenu("&All Magics")

# this action should not appear as it will be cleard when menu
# will be updated at first kernel response.
# This action should usually not appear as it will be cleared when menu
# is updated at first kernel response. Though, it is necessary when
# connecting through X-forwarding, as in this case, the menu is not
# auto updated, SO DO NOT DELETE.
self.pop = QtGui.QAction("&Update All Magic Menu ",
self, triggered=self.update_all_magic_menu)
self.add_menu_action(self.all_magic_menu, self.pop)
Expand Down

0 comments on commit 0433ea7

Please sign in to comment.