# Setup Google Drive Colab Environment

### Prerequisites:

* Google account

### 1. Download initial-setup.zip File

{% file src="/files/-M1YJXPZLUwvP2hgHcAI" %}
Initial-setup.zip
{% endfile %}

### 2. Extract initial-setup.zip

### 3. Navigate to [Google Drive](https://drive.google.com/drive/my-drive)

### 4. Upload initial-setup.ipynb

![](/files/-M1YJ54tImb1yn19UCuI)

### 5. Connect Colab To Google Drive

1. Double left click the ***`initial-setup.ipynb`*** to open it

{% hint style="info" %}
You might need to do the following steps:

* At the top of the screen, click "Open with" and "Connect More Apps"
* Type **`colab`** into the search field and hit enter
* Click the "connect" button next to Google Colaboratory
  {% endhint %}

**Now you have the option to open the files with Google Colaboratory**

![](/files/-M1YJCTihc5D2eAzO2IE)

### **6. Create A&#x20;*****Colab Notebooks*****&#x20;Folder In Your Google Drive**

1. Double left click the ***`initial-setup.ipynb`*** to open it
2. At the top of the screen, click "Open with Google Colaboratory"&#x20;
3. Under File menu Click **`Save a copy in Drive...`**&#x20;
4. Close `initial-setup.ipynb` notebook&#x20;
5. Focus the `copy of initial-setup.ipyb` and move to step 6, below.

**This step will create new folder in your google drive called Colab Notebooks**

![](/files/-M1YJGSZKi0jb42o0ZSi)

### **7. Open initial-setup.ipynb Using Google Colaboratory**

If copy of initial-setup.ipynb is not open yet open with the following steps:

{% hint style="info" %}

1. Navigate to your google drive&#x20;

2. Navigate to the ***Colab Notebooks*** folder

3. Double left click the ***`Copy of initial-setup.ipynb`***&#x74;o open it with "Open with Google Colaboratory"&#x20;
   {% endhint %}

4. Run Mount the drive cell ( click cell and press ***Shift+Enter*** )

5. Click the generated link&#x20;

6. Choose your account

7. Click **`Allow`** on the bottom

8. Copy authorization code then press enter

9. Run other cells ( click cell and press ***Shift+Enter*** )

**Navigate your intro-to-python folder in your drive's&#x20;*****Colab Notebooks*****&#x20;folder**

![](/files/-M1YJQsF6tYBoMpVJwAO)

## Other  Software To Possibly Consider **For Offline Use**

### Python 3 - The Anaconda Distribution.

There are many ways to get Python on your computer, but the premier way of accomplishing this in the Data science world is by installing the Anaconda distribution.

Which gives you access to **Python 3, Jupyter Notebook**, and a number of indispensable Data science libraries such as **NumPy, Pandas, and MatplotLib**

### Mac Os

1. &#x20;Download the [MacOs Installer](https://www.anaconda.com/downloads#macos) for Python3
2. &#x20;Double-click the downloaded file and click continue to start the installation.
3. &#x20;Answer the prompts on the **Introduction, Read Me and License** screens.
4. &#x20;In **Destination Select**, click the **Install** button to install Anaconda in your **Home User Directory.**
5. **(Optional)** Microsoft VScode

   You will be given the option to install VScode.&#x20;

   **(I DO NOT recommend that you install VSCode at this point. Although it is a GREAT IDE that will come in handy down the line, it is best that we familiarize ourselves with the conda environment for starters.)**
6. Installation will be complete when you can search for and find the **Anaconda Navigator** and **Anaconda Prompt**  applications on your computer.

{% hint style="info" %}
PATH might be an issue.
{% endhint %}

### Windows

1. &#x20;Download the [MacOs Installer](https://www.anaconda.com/download/#windows) for Python3
2. &#x20;Double-click the downloaded file and click continue to start the installation.
   1. Do not launch the installer from within your **Favorites** Folder.
3. &#x20;Read Licensing terms and click **I Agree.** &#x20;
4. &#x20;Select an install for **Just Me**
5. Select a destination folder that is within your **Home Directory.**

   ex: `c:\Users\your_name\Anaconda3`
6. **DO `add Anaconda to my Path Environment Variable`**
7. **Do `Register Anaconda as my default Python 3.7`**
8. **(Optional)** Microsoft VScode

   you will be given the option to install VScode.&#x20;

   **(I DO NOT recommend that you install VSCode at this time. Although it is a GREAT IDE that will come in handy down the line, it is best that we familiarize ourselves with the conda environment for starters.)**
9. &#x20;After a successful installation you will see the “Thanks for installing Anaconda” dialog box.
10. You should now be able to find the **Anaconda Navigator** and **Anaconda Prompt** applications on your computer.

## Git

Git is a version-control software that allows us to interface with github.&#x20;

This is the software that you will be using to pull down the course materials from **Github** onto your computer.

### Mac Os

Download it [here](https://git-scm.com/downloads) and install. **--Fairly-- Painless on Mac**

### Windows

#### Prepare for Installation

1. **Verify Windows version is up to date,** update if not.
2. **Activate Developer Mode** in Settings. (See .gif below)

   Open Settings (by typing "settings" in Cortana at the bottom left of your screen) and choose "Update & Security" then "For developers", and then turn on "Developer mode" if it's not already selected.
3. **Note:** You may be prompted to install additional packages (and you should do this if prompted) and a restart may be required (which you should also do).

![](/files/-LXQLwt-NB2_aLVqht3A)

#### **Install Git for Windows**

1. **Download and run the installer**, which you can find [here](https://git-for-windows.github.io/).&#x20;
2. **The installer will prompt you through several setup screens**. You should select the default option for each one.

![](/files/-LXQMNT5ZSqkWB9Iya1V)

**Once the installation has finished**, you can open Git for Bash by clicking on Cortana and typing "Git Bash"). Congrats! You've now got a Linux-like command line environment running in Windows.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://softstack-factory.gitbook.io/ds200/setup-google-drive-colab-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
