def METHOD_NAME(self):
    self.set_exit_function(self.main.closing)
    # Hide this plugin when not in development so that people don't
    # use it instead of the IPython console
    if DEV is None:
        self.toggle_view_action.setChecked(False)
        self.dockwidget.hide()