Post

[HAI5016] (dev) Containers

[HAI5016] (dev) Containers

This week let’s activate your Google Cloud for Education Credits and explore GitHub Codespaces containers for our data science projects.

Disclaimer: This blog provides instructions and resources for the workshop part of my lectures. It is not a replacement for attending class; it may not include some critical steps and the foundational background of the techniques and methodologies used. The information may become outdated over time as I do not update the instructions after class.

1. Redeem Your Google Cloud for Education Credits

  1. Open the e-mail that I sent you with the subject “Your Google Cloud Education Credits” and click the “Student Coupon Retrieval Link”
  2. In the form that opens, enter your name and SKKU Google account (@g.skku.edu) e-mail address and click “Submit”
  3. You will receive an e-mail from Google Cloud with a link to verify your e-mailadress. Click the link in the e-mail.
  4. After verifying your e-mail address, you will receive another e-mail from Google Cloud with your Google Cloud Coupon Code. This e-mail also contains the link to directly redeem your credits.
  5. Click the link in the e-mail or go to Google Cloud Console Billing Page and select “Manage billing accounts”
  6. Click “Redeem a code”, enter your name and the Google Cloud Coupon Code from the e-mail
  7. Click “Accept & Continue” to apply the credits to your account

This should lead you to the billing account overview page.

Verify Your Credits

No credit card information is needed to activate your Google Cloud Education Credits!

  1. Go to Google Cloud Console

  2. In the Google Cloud Console, go to the Billing Overview Page
  3. Find the credits menu on the left sidebar and click it

    Your brand new $50 credit

Here you should find your freshly redeemed $50 Google Cloud Education Credits.

Create a Google AI Studio API Key

  1. Go to Google AI Studio
  2. Click Create a new key
  3. Give a name to your API key, e.g., HAI5016-25-Key
  4. Select a project or create a new one for this key (e.g., HAI5016-25-Project)

    Create a new Google Gen-AI API Key

  5. Click Create
  1. Open the Google Cloud Console
  2. Open the project picker in the top navigation bar and select the project you created for your API key (e.g., HAI5016-25-Project)

    Open Google Cloud Project Picker

  3. Find the ‘Billing’ menu on the left sidebar and click it
  4. Click Link a billing account
  5. Select your billing account with the redeemed education credits and click Set account

    Open Google Cloud Project Picker

Check again in Google AI Studio

  1. Go back to Google AI Studio API Keys
  2. Find your key and check the Quota column
  3. If not in Tier 1, click on “Set up billing”

    Open Google Cloud Project Picker

  4. In the Google Cloud Console page, clik on ‘Link a billing account’ and select your billing account as shown in the previous steps.

2. Explore GitHub Codespaces Containers

Open respository in GitHub Codespaces

  1. Fork https://github.com/PimOps/HAI-5016-DC/ to your GitHub account
  2. Open the repo in GitHub Codespaces (or clone it locally and open it in VS Code if you have docker installed)
  3. See how the container is being built
  4. Discover the files in the repository

When time allows, we can try to predict the Seoul Bike Sharing Demand dataset using GitHub Copilot in the codespace container based on file https://camphouse.me/assets/csv/SeoulBikeData.csv

References:

This post is licensed under CC BY 4.0 by the author.