1. Google Colab Notebooks#
A Jupyter Notebook is a document format that allows you to combine executable code along with text, images, equations, into a single, shareable file. Jupyter Notebooks use the file extension “.ipynb” which stands for “IPython NoteBook”.
Google Colab (Colaboratory) is an online platform provided by Google that allows users to create, edit, and run Jupyter Notebooks without the need for local installation. To create a Google Colab Notebook, access your Google Drive. Navigate to New → More → Google Colaboratory.
After you have created a new notebook, you will see an empty code cell. Python code can be entered into these code cells and executed at any time by either clicking the Play button to the left of the code cell or by pressing Command/Ctrl+Enter. At the top of your notebook, there are two buttons: + Code
and + Text
. Clicking + Code
allows you to insert a new code cell, while clicking + Text
lets you add a text cell to your notebook. Note that the Google Colab Notebook will need to connect to a Runtime in order to execute any code.
Text cells in Colab support Markdown, allowing users to format text easily. Markdown enables the addition of headings, lists, links, images, tables, and more, enhancing the readability and organization of the content. Search for ‘Markdown cheatsheet’ to get a quick start with Markdown.
If you cannot access the Google Colab Notebooks or would like to run everything locally on your computer, then I recommend installing Anaconda.