code: def import_data(self, fname):
          
          if self.count():
              nsb = self.current_widget()
              nsb.refresh_table()
              nsb.import_data(filenames=fname)
              if self.dockwidget and not self.ismaximized:
                  self.dockwidget.setVisible(True)
                  self.dockwidget.raise_()
docs: Import data in current namespace