Practical Introduction to Google Colab for Data Science

Using Google Code Lab: A Comprehensive Guide to Data Science

Google Code Lab is an interactive platform designed to help users explore data science concepts and build projects from scratch. In this guide, we will walk you through the various features and functionality of Google Code Lab, including how to create headings, add text, and install packages.

Creating Structure with Headings

---------------------------------

To start using Google Code Lab, notice that there is a table of content on the left-hand side. Clicking on it expands to reveal available headings. We can add new headings by clicking on them and typing in our desired title. For example, we can create heading 1 and use the hashtag symbol (#) to make it a subsection of the previous heading. Notice that headings are hierarchical, with one hashtag indicating the topmost level, two hashtags indicating a subsection of the previous heading, and three hashtags indicating a subheading of the two-hashtag heading.

Adding Cells for Text

---------------------

Cells in Google Code Lab can be used to add text, code, or both. We can move cells up and down using the arrows at the top and bottom of each cell. If we click on a cell, it will allow us to move it up or down. We can also remove a cell by clicking on the trash can icon.

Typing Text

-------------

Cells in Google Code Lab are designed to be flexible. We can type in any text we like, including bold and italic text using special formatting options. To make text bold, click on the three asterisk symbol (*) at the top of the page. To make text italic, click on the italic symbol (i). To make text both bold and italic, click on the combination of three asterisks and an italic symbol (*_i).

Adding More Family or One Equals to Two

-----------------------------------------

Normally, cells will be added beneath the cell that is currently selected. If we want to assign a more specific heading or number, we can do so by typing in the desired text and using one equals sign (=) followed by our desired value. For example, if we want to add another family or one equals two, we can type "1=2" into a new cell.

Adding Text Spots and Subheadings

---------------------------------

We can create subheadings by clicking on the number of hashtags in each heading. Notice that headings with one hashtag are at the topmost level, while those with three hashtags are subheadings of the two-hashtag headings. We can also add text spots to our headings using a combination of numbers and hashtags.

Using Headings to Organize Code

--------------------------------

One of the key features of Google Code Lab is its ability to organize code using hierarchical headings. This makes it easy to group related sections of code together and to identify the main concepts being discussed. For example, we can add a new heading by clicking on the three-dot symbol (...) at the top right-hand corner of each cell. We can then use this heading to create subheadings and organize our code accordingly.

Installing Packages

------------------

Google Code Lab comes with many popular packages pre-installed, including pandas, numpy, scikit-learn, and matplotlib. If we want to import a package that is not available by default, we can install it using the exclamation mark symbol (!). For example, if we want to install the PIP library, we can type "pip install PIP" into the command line.

Running Code

-------------

Once we have installed the necessary packages and added our code to Google Code Lab, we can run it using the exclamation mark symbol (!). This will execute our code and display the output in a new cell. We can then use this output as needed for further analysis or visualization.

Conclusion

----------

Google Code Lab is an excellent tool for anyone looking to explore data science concepts and build projects from scratch. Its intuitive interface, hierarchical headings, and flexibility make it easy to organize our thoughts and code. Whether you're just starting out in data science or are an experienced professional, Google Code Lab has something to offer. So why not give it a try? Create your own account, explore the various data sets and tutorials, and start building your data science portfolio today!

"WEBVTTKind: captionsLanguage: enokay so in this video I'm going to show you how you can use the cloud computing platform called the Google collab for your data science projects if you new here my name is Shannon nontox and Ahmad and I'm an associate professor of bioinformatics on the data professor YouTube channel we cover about data science concepts and practical tutorials so if you're into this kind of content please consider subscribing so without further ado let's get started so the first thing that you want to do is go to Google and search for Google collab co la be enter and click on the first link okay so before you will see this page you will have to sign in to your Gmail and once sign in you can have a look at this pop up menu which will allow you to see the recent notebook that have been open and the example notebooks that Google have provided as well as the existing notebooks that are in your Google Drive whenever you create a collab notebook it will go into your Google Drive and you can also import notebooks from github so you can put in the github username for example if I type in data professor enter and it will retrieve the code that are in the code repository they are the list of Jupiter notebook that I have uploaded okay so there are four available so click on one and then it will import directly into your Google code lab and you can also upload it from your own desktop so in this tutorial we're going to create a new notebook so let's start fresh from scratch and let's build your very own Jupiter notebook on the Google collab okay so the first thing that you can do is give it a name I just call it my notebook or just like my first notebook okay so notice here that there are two types of cells that are available the first cell is the code cell and the second cell is the text cell so the text cell will allow you to put in text which will be in markdown format blah blah blah okay so this will be the example text and I'll add another text and in order to give it a heading I will use the hash tag I'll call it heading 1 chef's enter or even the play button so this is heading 1 and let's give it some code a equals to 1 okay another thing when I run the first cell for the first time it will display connecting and it will take some time because it will need to first find an available computing resource for you on Google platform and once it is initiated you will see the RAM and the disk that are available for your computation so if you hover your mouse over it you will see that you are assigned about 12 gigabytes of memory and the hard disk you have about 100 gigabytes but it is currently using 27 so in the code cell you can assign the code to it and after that shift enter and notice that the number to the left similar to a two-bit notebook it will tell you the running number so whenever you run a new text box it will give you a new number number 3 okay and if you rerun the previous cells the number will overlap to 4 right so this is 2 so if I run it again it will become 5 right 5 there you go so let's give it some structure shall we notice that there is the table of content to the left here if you click on it it will expand and notice that currently we have only one heading ok so let me add heading 2 and we're usually to hash tag which will make it a subsection of heading 1 and we could add text underneath it as well heading 2 okay it's a code so I need to add this to a text and move this up and down so notice that this if you click on the cell the arrows up and down will allow you to move the cells up or down and you can even remove the cell if you want ok so normally the cells will be added beneath the cell that is currently selected on so if I click on the heading 2 and it clicked on the code it will add a new cell right beneath it so let's assign some more family or one equals to two and I'm gonna add another text spots and I'm gonna give it a three hash tag and it will be subheading okay so notice that hitting one has one hash tag heading 2 has two hash tag heading three has three hash tag and notice that they are in hierarchical order so when you have one hash tag it's the topmost order and when you have two hash tag it will be a subsection of the previous heading and we have three hash tag it will be the subheading of the two hash tag okay so let me add this I just call it one point two and this one becomes one point one here you go so hitting one this here and the subsection I will add another number after it so one point one it has two hash tag and this one also has two hash tag and because heading three is located underneath heading one point two heading three here would then become subheading of one point two but however if I move this up to be underneath the one point one then notice that hitting three we will then become a subsection of heading one point one okay so that make this one point three move it down okay and so you see that there are three sub sections underneath heading one if I add another one if I have okay so this one has to hashtag this one has three hashtag and if I have another one which has four hashtag one okay so the hierarchical weight will allow you to group the various parts of your code so it comes in handy and it gives the notebook some structure to it so it will make going through the notebook a lot easier okay so normally the notebook will come with many of the popular packages pre-installed such as pandas so for example let's type in import pandas PD it already has it installed right so importing it will work so let's try import Seabourn as SNS it also has import numpy SNP import SK learn and for example if you want to import some classifier from SK learn okay and we can do that as well and matplotlib import matte lip SpMT okay and if you want to add some heading to it you can do that as well we'll give it heading one level and then you can call it import libraries here we import the necessary libraries use in this notebook so you can write in anything that you like you can even both the text for example if you want to make libraries bold you could click on the boat symbol if you want to make notebook italic click on it and if you want to make it both bold and italic okay so it requires three asterisk just click on B and then I so it will be three asterisk and if you want to add bullet points click on it and if you want to add a numbered list click on it right and what if you want to install packages that is not available by default if I want to use import PI through the mul it doesn't have this package so what I need to do is install it by typing in the exclamation mark pip install PI 3d more and then this will install the program and to run the example code I'm going to use this okay and so the example code works so this is a package that comes in handy for visualization of the protein structure and it's very useful for bioinformatics work okay so in a nutshell this is how the Google code lab works I'm sure you're going to find it very useful as I did and so as always the best way to learn data science is to do data science and let's use this opportunity to build your data science portfolio so feel free to use the Google code lab to explore the various data sets and follow along with the tutorials that I have mentioned in this channel thank you for watching please like subscribe and share and I'll see you in the next one but in the meantime please check out these videosokay so in this video I'm going to show you how you can use the cloud computing platform called the Google collab for your data science projects if you new here my name is Shannon nontox and Ahmad and I'm an associate professor of bioinformatics on the data professor YouTube channel we cover about data science concepts and practical tutorials so if you're into this kind of content please consider subscribing so without further ado let's get started so the first thing that you want to do is go to Google and search for Google collab co la be enter and click on the first link okay so before you will see this page you will have to sign in to your Gmail and once sign in you can have a look at this pop up menu which will allow you to see the recent notebook that have been open and the example notebooks that Google have provided as well as the existing notebooks that are in your Google Drive whenever you create a collab notebook it will go into your Google Drive and you can also import notebooks from github so you can put in the github username for example if I type in data professor enter and it will retrieve the code that are in the code repository they are the list of Jupiter notebook that I have uploaded okay so there are four available so click on one and then it will import directly into your Google code lab and you can also upload it from your own desktop so in this tutorial we're going to create a new notebook so let's start fresh from scratch and let's build your very own Jupiter notebook on the Google collab okay so the first thing that you can do is give it a name I just call it my notebook or just like my first notebook okay so notice here that there are two types of cells that are available the first cell is the code cell and the second cell is the text cell so the text cell will allow you to put in text which will be in markdown format blah blah blah okay so this will be the example text and I'll add another text and in order to give it a heading I will use the hash tag I'll call it heading 1 chef's enter or even the play button so this is heading 1 and let's give it some code a equals to 1 okay another thing when I run the first cell for the first time it will display connecting and it will take some time because it will need to first find an available computing resource for you on Google platform and once it is initiated you will see the RAM and the disk that are available for your computation so if you hover your mouse over it you will see that you are assigned about 12 gigabytes of memory and the hard disk you have about 100 gigabytes but it is currently using 27 so in the code cell you can assign the code to it and after that shift enter and notice that the number to the left similar to a two-bit notebook it will tell you the running number so whenever you run a new text box it will give you a new number number 3 okay and if you rerun the previous cells the number will overlap to 4 right so this is 2 so if I run it again it will become 5 right 5 there you go so let's give it some structure shall we notice that there is the table of content to the left here if you click on it it will expand and notice that currently we have only one heading ok so let me add heading 2 and we're usually to hash tag which will make it a subsection of heading 1 and we could add text underneath it as well heading 2 okay it's a code so I need to add this to a text and move this up and down so notice that this if you click on the cell the arrows up and down will allow you to move the cells up or down and you can even remove the cell if you want ok so normally the cells will be added beneath the cell that is currently selected on so if I click on the heading 2 and it clicked on the code it will add a new cell right beneath it so let's assign some more family or one equals to two and I'm gonna add another text spots and I'm gonna give it a three hash tag and it will be subheading okay so notice that hitting one has one hash tag heading 2 has two hash tag heading three has three hash tag and notice that they are in hierarchical order so when you have one hash tag it's the topmost order and when you have two hash tag it will be a subsection of the previous heading and we have three hash tag it will be the subheading of the two hash tag okay so let me add this I just call it one point two and this one becomes one point one here you go so hitting one this here and the subsection I will add another number after it so one point one it has two hash tag and this one also has two hash tag and because heading three is located underneath heading one point two heading three here would then become subheading of one point two but however if I move this up to be underneath the one point one then notice that hitting three we will then become a subsection of heading one point one okay so that make this one point three move it down okay and so you see that there are three sub sections underneath heading one if I add another one if I have okay so this one has to hashtag this one has three hashtag and if I have another one which has four hashtag one okay so the hierarchical weight will allow you to group the various parts of your code so it comes in handy and it gives the notebook some structure to it so it will make going through the notebook a lot easier okay so normally the notebook will come with many of the popular packages pre-installed such as pandas so for example let's type in import pandas PD it already has it installed right so importing it will work so let's try import Seabourn as SNS it also has import numpy SNP import SK learn and for example if you want to import some classifier from SK learn okay and we can do that as well and matplotlib import matte lip SpMT okay and if you want to add some heading to it you can do that as well we'll give it heading one level and then you can call it import libraries here we import the necessary libraries use in this notebook so you can write in anything that you like you can even both the text for example if you want to make libraries bold you could click on the boat symbol if you want to make notebook italic click on it and if you want to make it both bold and italic okay so it requires three asterisk just click on B and then I so it will be three asterisk and if you want to add bullet points click on it and if you want to add a numbered list click on it right and what if you want to install packages that is not available by default if I want to use import PI through the mul it doesn't have this package so what I need to do is install it by typing in the exclamation mark pip install PI 3d more and then this will install the program and to run the example code I'm going to use this okay and so the example code works so this is a package that comes in handy for visualization of the protein structure and it's very useful for bioinformatics work okay so in a nutshell this is how the Google code lab works I'm sure you're going to find it very useful as I did and so as always the best way to learn data science is to do data science and let's use this opportunity to build your data science portfolio so feel free to use the Google code lab to explore the various data sets and follow along with the tutorials that I have mentioned in this channel thank you for watching please like subscribe and share and I'll see you in the next one but in the meantime please check out these videos\n"