- Log into your github account (make one if necessary)
- Navigate to the course repository
- Click fork > create a new fork, use default settings to create the fork. Now you have your own copy of the course code repository that is linked back to the original.
- Log into google colab using your google account
- When it says "open a notebook" select "GitHub"
- Authorize with github -- make sure your username is shown
- Enter your username and find the repository named
Nonlinear_and_Data_Driven_Estimation(which you forked to your own account above) - Select a notebook, it will open in google colab, you should be able to run the notebook
If you make changes and wish to save them (recommended):
- Click File > Save a copy in GitHub
- Change the file name to include your name (to make it unique) -- this will ensure that you don't lose your work later
Throughout the course I will add more code to the repository. To pull in the new code without losing your edits:
- Navigate to your fork of the repository in github
- Click sync fork > update branch -- you will get the new code
- Important: do no click "discard X commits" -- that will destroy your notebook copies!
By default, google colab lets you run the notebook for free on their servers. If this is too slow, or you run out of free compute, you can run colab locally using docker.
- Click the RAM/Disk symbol, and choose "connect to a local runtime"
- Follow the instructions link, "Option 1. Colab Docker runtime image" (Docker should already be installed on computer lab computers, otherwise download Docker desktop)
- Copy the command:
docker run -p 127.0.0.1:9000:8080 us-docker.pkg.dev/colab-images/public/runtime - Run the command -- the first time you run it lots of things will download and it will take a while. Next time should be much faster
- Windows: use the command prompt
- Mac: use the terminal
- After the command is done running, copy the URL the terminal shows, like this:
http://127.0.0.1:9000/?token=3227028f1bc16bc03433398c6c04aeddb24f165d316c82e8 - Paste the URL into the box in google colab and click connect
- Now you should be running the notebook using your local compute resources




