'Convert IPython notebooks to Python scripts in editor'

@Slot()
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)
