code: def reset_namespace(self):
          
          self.shellwidget.reset_namespace(warning=self.reset_warning,
                                           message=True)
docs: Resets the namespace by removing all names defined by the user