> For the complete documentation index, see [llms.txt](https://unstructured-playgroud.gitbook.io/unstructuredplayground/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unstructured-playgroud.gitbook.io/unstructuredplayground/release-1.0/enviornment/autograder.md).

# Autograder

## Introduction

This course uses an autograder for grading your assignments.  This exercise demonstrates how to

1. Download your assignment to your VM
2. Answer the exercises
3. Upload your answers to the autograder

## Exercise

### Open a terminal on your native machine and start Vagrant

```
cd msbx5420vagrant
vagrant halt
vagrant up
```

### Download the exercise from GitHub

```
cd
cd work
rm -rf autograder
rm -rf MSBX5420-001-FunctionalProgramming
git clone https://github.com/marilynwaldman/autograder.git
```

### Stop remove all containers - you will see errors if you have no containers running

```
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
```

### Start your Spark Notebook

```
docker run -d --name spark  -p 8888:8888  \
    -v $HOME/work:/home/jovyan/work:rw  \
     jupyter/all-spark-notebook \
     start-notebook.sh --NotebookApp.token='' 
```

### Open your browser and go to:

```
http://localhost:8888
```

### Pull up the exercise in the "autograder" folder

![](/files/-LXFlLJta5DVGL3UlLhO)

### Answer the question at the end of the notebook

Note that you must comment out the "raise NotImplementedError() and insert your answer

![](/files/-LXFm3Zf0fSDhHCNLmI3)

### Download the notebook and submit to Canvas

Note:

* The notebook Downloads to you virtual machine.&#x20;
* The name of the file to be submitted to the autograder must be "stock\_kurtosis.ipynb", exactly the name when downloaded from GitHub.
* The cells are graded per the "assert" section.  Use care when modifying graded cells

&#x20;

![](/files/-LXFmd80oCyfEpwIAhG4)

### Stop all docker containers on the VM

```
docker stop spark
docker rm spark
```

### Shut down the VM - from the native machine

```
vagrant halt
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unstructured-playgroud.gitbook.io/unstructuredplayground/release-1.0/enviornment/autograder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
