Code Monkey home page Code Monkey logo

async-nbgrader's Introduction

Github actions badge codecov Conventional Commits Imports: isort Code style black

IllumiDesk

This monorepo is used to maintain IllumiDesk's authenticators, spawners, and microservices. This setup assumes that all services are running with Kubernetes. Please refer to our help guides for more information.

Overview

Jupyter Notebooks are a great education tool for a variety of subjects since it offers instructors and learners a unified document standard to combine markdown, code, and rich visualizations. With the proper setup, Jupyter Notebooks allow organizations to enhance their learning experiences.

When combined with the nbgrader package instructors are able to automate much of tasks associated with grading and providing feedback for their users.

Why?

Running a multi-user setup using JupyterHub and nbgrader with containers requires some additional setup. Some of the questions this distribution attempts to answer are:

  • How do we manage authentication when the user isn't a system user within the JupyterHub or Jupyter Notebook container?
  • How do we manage permissions for student and instructor folders?
  • How do we securely syncronize information with the Learning Management System (LMS) using the LTI 1.1 and LTI 1.3 standards?
  • How do we improve the developer experience to provide more consistency with versions used in production, such as with Kubernetes?
  • How should deployment tools reflect these container-based requirements and also (to the extent possible) offer users an option that is cloud-vendor agnostic?

Our goal is to remove these obstacles so that you can get on with the teaching!

Prerequisites

Kubernetes v1.17+.

Quick Start

This setup only supports Kubernetes-based installations at this time. Refer to the helm-chart repo for installation instructions.

Development Installation

Refer to the contributing guide located in the root of this repo.

Building the JupyterHubs

  1. Build the JupyterHub for local testing with docker-compose or docker:
make build-hubs
  1. Build the JupyterHub for local testing with Kubernetes:
make build-hubs-k8

General Guidelines

This project enforces the Contributor Covenant. Be kind and build a nice open source community with us. ++

License

Please refer to the included license in this repository's root directory.

async-nbgrader's People

Contributors

jgwerner avatar rupeshparab avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

async-nbgrader's Issues

New Architecture for Auto Grading Job services

Overview

IllumiDesk needs to re-design the auto-grading services to improve scalability and decouple the service from the rest of the LMS system.

Desires and Goals

  • The auto-grading service can be called from any client using standard APIs (RESTful, etc)
  • Like the rest of the system, requests should be authenticated
  • Leverage native Kubernetes services to the extent possible to manage jobs
  • Maintain compatibility (at least for the first iteration) with the nbgrader database schema and nbgrader ipynb schema
  • Allow system administrators to adjust CPU / Mem settings for auto-grading containers
  • Enable notifications based on job status (completed, failed, in-progress, etc)
  • Log auto-grading jobs to a central location via stdout/stderr (thus allowing administrators to integrate the logging tool(s) of their choice.

Notes

  • The nbgrader auto-grading feature is tightly coupled with the Jupyter Notebook. The async-nbgrader project helps but need to take this a step further and siphon off the auto-grading service into a more traditional queue/task-based job architecture.
  • The queue/job architecture setup naturally has many options. We are more inclined to stick with a Kubernetes-native approach. This of course has pros/cons. If we use something with native Kubernetes (Argo, K8s jobs, etc) then it's more complex to setup and maintain, however it would allow us to provision this with any cloud vendor if we chose to do so and/or offer this with the IllumiDesk Enterprise version. Perhaps when managing this with our SaaS solution we could combine K8s with a managed service, such as Fargate via plugins/configs/middleware but that is wait-and-see.
  • The queue/job architecture should be generic enough so that we can receive notifications based on the status of the desired state and alert the end-user and/or internal IllumiDesk collaborators based on certain rules.
  • We could use the gofer_service and gofer_submit projects as sources of inspiration.

Nice to haves

  • Once the auto-grading has been completed, allow users to configure whether or not they need to auto-submit grades to their LMS either with LTI 1.3 or third-party integration service (Zapier, generic Webhooks, etc).

Diagrams and Architecture

This diagram has a basic first draft of how the re-architecture could look.

Resources

Complications identified

  • Worker containers would need shared volume access of the jupyter, in order to read the notebook. This is on basis of the current solution where we are using file storage.
  • Acquiring locks on basis of Notebook so that multiple workers don't write to the same notebook

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.