"Hello World (Colab)" Exercise
Last updated
Last updated
In this exercise, we'll practice using the Google Colab platform for the first time, gain familiarity with Python notebooks, and practice a rudimentary version control process of saving our notebooks to GitHub.
This exercise assumes you have already signed up for a GitHub account. You're also encouraged to review and reference this Markdown Guide.
On GitHub.com, create a new repository named something like "my-notebooks", and importantly include a "README.md" file. We'll refer to this as the "remote repository".
Use Google Colab to create a new notebook document, and give it a title like "My First Notebook".
In the notebook, create a new text cell and write some markdown in it (like the example markdown below).
In the notebook, create a code cell and write some Python code in it (like the example code below).
"Run" the notebook to see the output of your code cell.
In the notebook, click "File" > "Save a copy in GitHub" to try to save the notebook to the "my-notebooks" repo you just created. You will be asked to authenticate with your GitHub account.
View your remote repository on GitHub and verify the notebook document has been saved there. Also verify your ability to view the notebook document on GitHub.
Example markdown:
Example Python code:
Once you see the changes reflected in your remote project repository on GitHub.com, you have succeeded. Edit your existing text and code cells, and/or create new ones, then repeat steps 5-7 at least once for good measure.