How to use Google Colab to make your life easier

Google Colab Sep 19, 2019
Before we start using Google Colab you should know about what it is and why you should care, For complete detail go here.

In this article, we'll know how to use Google Colab for your workflow. How to set-up a work environment and at last, we'll execute some codes to see it's working.

Getting Started

To access Colaboratory you need to log in to your google account then go to this link.

On opening the website you'll see interface like this.

  • Examples Contains some explanatory notebooks provided by Colaboratory
  • Recent Contains all the Notebooks that you opened recently
  • Google Drive Contains all the notebook currently present in you drive
  • Github This section will show all the repository that you've uploaded from github to Colaboratory, but first you have to connect your github account with Colab.
  • Upload Here you can upload new notebook from your local machine, notbooks must have .ipynb extension
  • New Python 3 Notebook It will create a new jupyter notebook running python 3.6
  • New Python 2 Notebook It will create a new jupyter notebook running python 2.7

Some important links you should explore to see what kind of functionality Google Colab can provide.

Working with Notebooks in Colaboratory

Here you can see what are the shortcuts to be used how to use markdown shell and how to run and execute code cell

Colaboratory has two types of cells: text and code. The text cells are formatted using a simple markup language called Markdown, Colab is providing very rich markdown to write complex mathematical equations easily. You can learn about all the markdown features available in Colab here.

Although there are pretty much all libraries included in Colab but sometimes we have to install some other libraries, here you can learn how to import and install external libraries

Being a Data Science professional so many of our work is stored on Github. Here you can learn how to connect your github repository with colab and how you can upload notebooks directly from Colab to your Github account

Forms provide an easy way to parameterize your code. You can learn here how you can use interactive forms to take input from the user .

Colaboratory widgets enable you to show your image output in a very managed way without being dependent on users to provide preconstructed HTML.

I hope till now you have executed code cell by yourself and have experienced all the features available in the Colab. We will explore some more functionality in another post, see recommended posts for further exploration.


Happy learning

sheetala tiwari

I am passionate about Data Science and Machine Learning. I am currently building an AI community on DataDiscuss and we are committed to providing free access to education for everyone.