Google Colab
What is google Colab?
- Online programming tool
- Advantages
- Zero configuration required
- Free access to GPUs
- Easy sharing
- Subject organized in notebooks
What is a notebook?
- Interactive environment
- run code
- make comments
- print results
How to start?
- Create a google account if you do not have one
- go to the url https://colab.research.google.com/
- Create a new notebook
- Select text and create a comment
- Title
- Paragraph
- List
- Mathematical formulas
- Copy the code below, paste it into the notebook and run it
Import tensorflow as tf
Import numpy as np
Import pandas as pd
Import matplotlib.pyplot as plt
Import torch
How to install a new library?
To use libraries that are not inside colab. Use !pip install library name as shown in the following example.
!pip install gym
Download options.
There are two options
-
.ipynb
is the format of notebooks
-
.py
is python format