The nbd_colab API exposes the following to set up a new project with nbdev, Google Colaboratory, Google Drive and GitHub.
Utils¶
API¶
Repositories will be cloned to '/content/drive/My Drive' by default but this can be customized to anywhere on the users Google Drive at the first input prompt. Successfully cloned repositories are automatically configured with the users username and email (required by GitHub) and nbdev_git_hooks
is installed.Nbdev_git_hooks
sanitises notebooks of unnecessary metadata prior to git pushes.
All user information is purged from nbdev immediately after use but persists in the local repository configuration file (.git.config). See cautionary note in the docs overview.