Skip to content

CommunityRADvocate/colab-th-pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Setup Colab to Run Treehouse Modules

Walkthrough of setting up Colab to be able to run the Treehouse notebooks

Download repository file and add to Google Drive

  • Select "Download ZIP", then unzip the file on your computer
  • Go to your Google Drive and upload the folder you just unzipped into your main drive
  • Double click to go into the folder in Google Drive, and make sure it looks something like this:

Start working with the files

  • Now you're ready to start going through the exercises, each of which is contained in its own Jupyter notebook (files ending in .ipynb)
  • Because we're working in a virtual environment when using Colab, each time you open a notebook you'll need to connect it to Google Drive so that it can read the other files contained in the repository. I've gone ahead and written a code block that you can copy and paste in a new code block at the top of each notebook:
# import drive module
from google.colab import drive
# mount Google Drive
drive.mount('/content/drive')
# navigate to working directory548
%cd drive/MyDrive/python-introducing-pandas-master/
  • You will be asked to authorize access each time you mount Google Drive to a Colab notebook, but this option means that you're able to save the notebooks in your drive to revisit

About

Walkthrough of setting up Colab to be able to run the Treehouse notebooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors