Skip to content

How to...

Elsa Culler edited this page Sep 23, 2023 · 8 revisions

Coding challenges

Get feedback on your work

If you feel there has been an error in your grading, get in touch with the teaching team.

We have a flexible late policy - if you would like to submit or resubmit late work for any reason, you may do that and contact the teaching team for a re-grade. Just know that it may take some extra time to complete on our end.

On your autograded GitHub Classroom assignment

For each graded notebook cell, you will be able to see:

  • points awarded for each part of the assignment
  • (for code cells) test results as run on the grader's computer
  • (for tasks and written answers) the mark scheme indicating how written responses are evaluated
  • any comments from the grader.

To access your feedback:

  1. Return to your GitHub Classroom repository (you can always follow the assignment link if need be). Each notebook should have an html file with feedback.
  2. Click on the html file for the notebook you want to view
  3. Identify the Download button in the upper right of the file view and click it
  4. Open the downloaded HTML file. This should happen automatically in a web browser.

On your portfolio page

This feedback will be available on your Pull Request as a review. Make sure to remove the is:open filter from your search to view past pull requests.

On your participation

  • Discussion participation scores will be available in Canvas and are based on EITHER your presence in the section zoom meeting OR posts made in the GitHub Discussions.
  • Q&A participation will be calculated at the mid-term and at the end of the semester. If you need more information about how to get participation points, please get in touch.

Apply for GitHub Student Benefits from out of state

We hear this works - let us know if it does not (or if you don't have multiple devices you can use)!

  1. Go to the GitHub Student Pack signup page on your phone connected to a cell network
  2. Click Sign Up and log in
  3. When you get to the part about uploading your proof of enrollment, select the option to take a photo of your schedule
  4. On your computer, go to the Buff Portal. Open up your class schedule, or any other document that says your name, the University of Colorado Boulder, and dates that you are currently enrolled.
  5. Take a photo with your phone
  6. Submit your Student Pack request

Create a Pull Request on GitHub in the class repository

Check out this video

  1. Change to the branch that matches your username
  2. Make your changes
  3. Go to the Pull Requests tab
  4. Click on the New Pull Request button
  5. Change the dropdown on the right to your branch name, making sure the arrow points to the main branch
image 6. Click the `Create Pull Request` button

Post your analysis to your portfolio

Check out this video

  1. Copy the .devcontainer.json file to your portfolio repository if needed
  2. Open a Codespace
  3. Create a new notebook (must end in the .ipynb extension)
  4. Write your analysis code in the new notebook (go ahead and copy the code, but don't try to copy the whole notebook)
  5. Add the following in a code cell at the end of the notebook:
%%capture
%%bash
jupyter nbconvert <your-notebook-name>.ipynb --to html --no-input
  1. Now each time you Restart and Run All your notebook will be exported.
  2. You can find a link to your new page at https://<your-username>.github.io/<path/to/your/notebook>.html. Post it in your branch in the class repository, and then create a pull request.

Review a portfolio submission

You should get an assignment for each review. When you receive it in your notifications or email:

  1. Go to the Changed Files tab of the pull request (PR)
  2. Follow the link to the portfolio submission
  3. Start a review in the PR - a couple statements of constructive feedback or observations is fine
  4. As long as the link works and you are able to view the submission, select Approve (no need to get in an exchange about these, even if you would like to see changes)
  5. Submit your review

Accept a GitHub Classroom assignment

  1. Navigate to the GitHub Issue for the coding challenge
  2. Click on the GitHub Classroom link in the Issue
  3. Reload the page to get to the new challenge repository created for you. The url should look something like www.github.com/earthlab-education/<assignment-name>-<your-username>

Work on a coding challenge in GitHub Codespaces

(Note that sometimes buttons are blue instead of green)

  1. Navigate to your assignment repository (e.g. www.github.com/earthlab-education/assignment-name-username). TIP: you can always get back to your assignment repository by clicking on the GitHub Classroom link
  2. Click on the green Code button
  3. Select the Codespaces tab
  4. Click the green 'Create codespace on main' button OR click on the name of a codespace you already created

It may take a minute or two for the Codespace to load.

Submit an assignment for automated testing

From the codespace you have been working in:

  1. Navigate to the GitHub tab on the left sidebar
  2. Write a commit message, such as 'Completed assignment'
  3. Click the blue Commit button
  4. Click the blue Sync button

Your changes should now be reflected in the challenge repository with your username on the end (the one you get to from the GitHub Classroom link). GitHub Classroom will run your code and let you know what your technical score is. Feel free to submit as many times as you like

Discussions

Submit your discussion response

  1. Open the GitHub Issue for the Discussion
  2. Start typing to reply to the issue with your response OR quote reply to another student by clicking the ... button on the right of their post
  3. If you are posting on behalf of multiple students, make sure to tag them!