code: def visibility_changed(self, enable):
          
          super(SpyderPluginWidget, self).visibility_changed(enable)
          if enable:
              self.explorer.is_visible.emit()
docs: DockWidget visibility has changed