Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

General assignment information

Getting started

To edit/execute a Homework/lecture notebook:

  1. Open the page for the Homework/Lecture on this site.

  2. Click the Open in Colab button at the top.

  3. You should now see the notebook in Google Colab.

  4. Make sure you’re using your school Google account. How to switch.

  5. Click Copy to Drive.

That is now your own copy; make edits in there directly.

Open-ended assignments

You’ll create your own notebook.

Tips

Coding in general

Jupyter / Google Colab

Generative AI

Generative AI tools can be incredibly useful, but the code they provide is often incomplete or wrong. Knowing enough about code to critically interpret their results can turn them from a crutch to a superpower.

For this course, it’s recommended that you try doing the work yourself, asking the AI questions as needed when you’re stuck/confused. If you’re really lost, you can try:

  1. Having AI generate a solution.

  2. Try it.

    1. Copy it into a code cell.

    2. Run it.

    3. Confirm the output makes sense.

  3. Understand it.

    1. Read through it closely.

    2. Add a comment above each line explaining what it’s doing.

  4. Redo it.

    1. Delete the code + comments from above.

    2. Close the AI chat.

    3. Re-write the solution yourself.

Tools

Submission

  1. Ensure all the outputs are visible and the notebook is cleaned up.

  2. Ensure the notebook doesn’t contain any sensitive information. (Only really applicable to open-ended assignments.) This might include:

    • API keys

    • Personally-identifiable information (PII; data about individuals)

  3. Download .ipynb and .py (two files).

    Click the Colab File menu, Download, then Download as .ipynb and Download as .py
  4. Upload both files to the Gradescope Assignment.

Note the Final Project submission is slightly different.

Notes

Common issues

Runtime and memory issues

The runtime is the place where Python is installed and the code is actually executing, in the cloud somewhere. If your runtime is repeatedly crashing, you’re probably running out of memory.