code: def convert_notebook(self, name):
          
  
          #subprocess.call(["jupyter","nbconvert","--to","python",
          #                self.get_path("%s.ipynb"%name)])
          exporter = nbconvert.exporters.python.PythonExporter()
          relative_path = self.convert_path(name)
          file_path = self.get_path("%s.ipynb"%relative_path)
          code = exporter.from_filename(file_path)[0]
          self.write_code(name, code)
          self.clean_code(name, [])
docs: Converts a notebook into a python file.