Tutorial

Version 21.1 by chaney08 on 2021/05/27 17:18

Purpose

The purpose of the Collaboratory.Lab tutorial is to allow a new user to create and use their first notebook, as well as explaining the basic principles to allow a user to continue beyond the scope of the tutorial.

How to get to the Lab

To get to the Lab, simply go to the Collab you want to work on and click on the "Lab" option on the right hand navigation element, as shown in the following screenshot: 1622123755771-230.png

How to create a notebook

After you have navigated to the Lab, you can see a list of currently existing notebooks in the left hand navigation menu. These notebooks can all be used by you, however any changes you make will not be saved unless you are the owner of the file. On the right hand side you will see your "Launcher" and it is here you can create a new notebook.

 1622125349931-642.png

If you click on the "Python 3" button underneath the "Notebook" menu, it will create a new Notebook for you called "Untitled" in the left hand navigation menu. You can give this an appropriate name by right clicking on the file and clicking "Rename" . It will also replace the right hand menu with this new notebook.

How to use/develop a notebook

Notebooks run off Python 3, so any code you type into these notebooks should be in the Python 3 format. Notebooks are divided into "Cells" that are run individually, however they all share the same environment, so importing a library in one cell will allow this library to be used in another cell. Cells help organise your code. An example of this can be seen below. 

1622127087243-656.png

In the above example you can see a red and a green box. The red box is the button you press to add a new cell to the notebook. The green box is the button you press to run the selected cell. The selected cell is shown by a blue bar to the left of the cells, in the above image you can see the third cell is currently selected.

Continuing on like this allows you to develop a full program using Python with our notebooks..