Python – Do you know Google Colaboratory ?

You don´t ?! but you should!

Colaboratory, or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser, and is especially well suited to machine learning, data analysis and education.

More technically, Colab is a hosted Jupyter notebook service that requires no setup to use, while providing free access to computing resources including GPUs.

What is Colab notebook?

Colab notebooks are Jupyter notebooks that execute in the cloud and are integrated with Google Drive, easy to set up, to access, and to share.

Adding code to colab

All you need to do is to click on + Code, then a gray box will open in the bottom so you can add you python code to that.

Add your code and click in the icon at the left.

Et voila…

Integration with Google Drive

In your python code you can refer to your files on google drive.

In the picture below, there is a file IRIS.csv stored in the google drive path

You can easily access this file from your Python code. All you have to do is to mount the driver in your code.

Now you create a reference to the file

Go ahead and do it yourself !!!

https://colab.research.google.com/notebooks/intro.ipynb

Leave a Reply