code: def convert_ipynbs(directory):
      
      # The ipython_examples dir has to be in the same dir as this script
      for root, subfolders, files in os.walk(os.path.abspath(directory)):
          for f in files:
              if ".ipynb_checkpoints" not in root:
                  if f.endswith("ipynb"):
                      ipynb_to_rst(root, f)
docs: Recursively converts all ipynb files in a directory into rst files in
      the same directory.