code: def show(self):
          
          if self.isHidden():
              QWidget.show(self)
              self._qpart.updateViewport()
docs: Override the QWidget::show() method to properly recalculate the
             editor viewport.