code: def visibility_changed(self, enable):
          
          super(SpyderPluginWidget, self).visibility_changed(enable)
          if enable and not self.pydocbrowser.is_server_running():
              self.pydocbrowser.initialize()
docs: DockWidget visibility has changed