code: def convert_notebooks(self):
          
          fnames = self.get_selected_filenames()
          if not isinstance(fnames, (tuple, list)):
              fnames = [fnames]
          for fname in fnames:
              self.convert_notebook(fname)
docs: Convert IPython notebooks to Python scripts in editor