Submitting your HW and Labs

Most of our HW and labs will be python programs that you will submit to our submission system/website. There are two ways to do this.

By Web Browser

If you did your work on your laptop, you can just upload directly to our website. Similarly, if you are physically at the lab machine where your files reside, you can do the same.

Visit the submit system website, click the little person icon on the top left, and login. Once logged in, click your assignments list on the top right of the screen and select the HW or Lab number that you want. Then click your name on the top left. Select "Upload Submission" and upload your files all at once.

By the Terminal

At first, using the terminal might seem overly techy and not user-friendly, but it's the quickest way to submit. More importantly, if you are on your laptop but editing your lab programs remotely, this is the only way to do it.

Open a Terminal (in VS Code, or just a Terminal on a lab machine). Run the submit program with your class name, assignment number, and list of files! For instance, on Lab 1 there are 5 required files to turn in, so we'd run the command like so:

~/bin/submit -c=SD211 -p=lab01 hello.py interact.py interactgui.py bmi.py classmate.txt

More generally, this is the syntax:

~/bin/submit -c=SD211 -p=ASSIGNMENT FILE1 FILE2 ...

If the above resulted in submit: command not found, then your account doesn't have the submit program yet. No problem! (Well, one problem, if you are connected remotely to the lab and it is not installed in your account, you're sort of stuck for now. You need to install this in the lab in Hopper. Visit any lab machine on your next visit.) Open a web browser, visit the submit website, click the person icon on the top left and login. Then click your name on the top left, and select Retrieve Personalized Script. Click the big button on the next page, Download Personalized Submission Script. Finally, move that file to a new bin folder and set the file to an executable program with these two commands:

mkdir ~/bin
mv ~/Downloads/submit ~/bin/
chmod 700 ~/bin/submit