'DockWidget visibility has changed'

def visibility_changed(self, enable):

    super(SpyderPluginWidget, self).visibility_changed(enable)
    if (enable and (not self.pydocbrowser.is_server_running())):
        self.pydocbrowser.initialize()
