Nbdev with Paperspace and Github

My notes for how to re-connect github with nbdev in paperspace when starting a new paperspace GPU(vm) session.

1.Open terminal in the “files” page. You will copy these steps into the terminal. If your not familiar with the terminal definitely check out Jeremy’s live coding session
2. copy .ssh to home: cp -r /notebooks/git/.ssh ~/
1. This would have been added in your first session by following jeremy’s ssh setup HERE

  1. install nbdev again!!!

    1. navigate to your project folder
    2. conda install -c fastai nbdev
    3. nbdev_install_quarto
    4. cd [your-project-name]
    5. nbdev_install_hooks
  2. Do work in notebooks or test it by just adding some markdown in an nb.

    1. nbdev_prepare
    2. git add .
    3. git commit -m’blah’
    4. git push
  3. check your git repository. click on the “Actions” tab and check to make sure all actions have a green checkmark

NOTE: remember to use git in the correct directory

1 Like