@extends('template')
@section('title')
How to Use Ocean
@stop
@section('content')
Note: Here's [a video version of this material](https://youtu.be/o-QYY7i1yjM)
if you prefer to see things in action instead of reading through text.
# How to Use the Ocean Server
To turn in your problem sets, you will upload your python code via the Ocean server (in CS111, you will only use CyberDuck/WinSCP for downloading files). This page gives detailed instructions for using the Ocean server.
# Ocean Overview
The Ocean server enables you to do the following:
* upload your python code files
* secure a 24hr pset extension (if desired)
* obtain feedback on your uploaded code
In order to use the server, you must first authenticate by logging into your Wellesley domain account (you will be prompted to do so).
# Welcome to the Ocean server (created by Peter Mawhorter)
## Step-by-step instructions for uploading your python code to the Ocean server
1. Go to [the CS111 Ocean Server](http://cs.wellesley.edu/ocean)
2. Authenticate by logging into your Wellesley domain account
3. You'll see Ocean's dashboard.
Note that each task has a light blue background right now.
This example will focus on PS01, Task 01: mathPractice.py (in the red rectangle below)
4. Click on "Choose File" and browse your laptop to find your `mathProblem.py` file. Note that your selected python file must have the exact name `mathProblem.py`, any other file will generate an error.
5. Enter a number in the box following **"How many hours have you spent on this task (across all attempts)?"**. If you type a word ("two", as shown below), Ocean will remind you to enter a number. Your hours spent may be an integer (eg 3) or a decimal (eg 3.5).
6. Click on the "Submit task" button (it is disabled until you select a valid file and enter your time spent)
7. This will bring you to a new window
Note that the text at the bottom initially says "Evaluation is still in progress".
8. Click refresh to see the results of your code evaluation.
Note that the text with the green background now says "Your submission is at least partially complete."
9. To go back to the Ocean dashboard, click on "Back to the dashboard" text:
10. Back at the Ocean dashboard, note the following:
+ the background of **PS01 Task 01** is now green (in contrast to the light blue backgrounds of the unsubmitted Tasks 02 and 03)
+ the checkmark above the **task1** text indicates the file has been submitted
+ you can resubmit your `mathPractive.py` file multiple times before the due date
11. **OPTIONAL EXTENSION**
Note the **"Take an extension"** button on the left. If you opt to take an extension on a pset, click this button and your 24 hour extension is automatically granted.
12. This shows how the Ocean server reflects the newly amended due date, taking the extension
into account for PS01.
13. **OPTIONAL REVISION [only available after the due date has passed]**
Let's pretend that it is now after the due date for PS01. You have received initial feedback, and your score was less than 95. You may, if you opt to, resubmit your pset for a maximum of 95 points. To do so, resubmit your `mathPractice.py` file (by following Steps #4-6 above)
.
14. This will bring you to a window (you may need to click refresh) with feedback.
You can click on the question marks for more descriptive information, and the black triangles expand with more feedback details. On the right side of the feedback (not shown here because it contains code), you can see your code and test results in separate tabs.
@include('/labs/lab01/_toc')
@stop