Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gzuidhof committed Jul 30, 2021
2 parents 6d988f7 + 306c160 commit caf52f6
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# starboard-nbgrader

Starboard and nbgrader proof of concept

## Running the demo
Expand All @@ -11,17 +12,13 @@ npm run build
http-server --port 8080 --cors
```

To connect to a local Jupyter Kernel Gateway, run:
To connect to a local [Jupyter Kernel Gateway](https://github.com/jupyter/kernel_gateway), run:

```shell
KG_ALLOW_METHODS="*" \
jupyter kernelgateway \
--KernelGatewayApp.allow_origin="https://unpkg.com" \
--KernelGatewayApp.allow_headers="authorization,content-type,x-xsrftoken" \
--JupyterWebsocketPersonality.list_kernels=True
jupyter kernelgateway --KernelGatewayApp.allow_origin="https://unpkg.com" --KernelGatewayApp.allow_headers="authorization,content-type,x-xsrftoken" --JupyterWebsocketPersonality.list_kernels=True
```


## Development

```
Expand All @@ -34,4 +31,20 @@ And in a different tab you can serve the demo:
http-server --cors
```

Note that the demo runs in a properly sandboxes iframe, which means that you need to do a full reload to see changes.
Note that the demo runs in a properly sandboxes iframe, which means that you need to do a full reload to see changes.

### Testing with Jupyter

Install Jupyter and nbgrader. Then, navigate to the `test_notebooks` directory and execute

```
jupyter notebook
```

The assignments are found in the `test_notebooks/source/assignment_name` directory. After generating them, the student versions will be found in the `test_notebooks/release/assignment_name` directory. Those can be edited in Jupyter or Starboard. And finally, the edited and submitted assignments go in the `test_notebooks/submitted/student_name/assignment_name` directory.

**Potential issues**

- Don't use a too new Python version or you can't install nbgrader
- Downgrade sqlalchemy to 1.3.23 https://github.com/jupyter/nbgrader/issues/1434
- Downgrade nbconvert to 5.6.1 https://github.com/jupyter/nbgrader/issues/1373

0 comments on commit caf52f6

Please sign in to comment.