Skip to content

Jupyter notebook extension for submitting assignments to a Gofer Service

Notifications You must be signed in to change notification settings

data-8/gofer_submit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Submit Extension

This repo contains the code for a Jupyter notebook extension that sends the JSON of a .ipynb file as an HTML POST request.

This extension used to include a dropdown menu for course selection, which modified the metadata course tag to support multiple courses on one hub. In the index.js file you will see the commented out code. If we ever need multiple courses on a hub we can re-enable it.

Currently the repo assumes that you are running gofer_service as a service of your jupyterhub. Although the name changed to otter_service, we did not change the exposed endpoint because of multiple dependencies to the path gofer_nb. This should be changed at some future point.

However, for a Gofer service hosted externally, you will need to modify gofer_submit/static/index.js to send to the correct end point.

Installation

Installing this package from pip (or equivalently python setup.py) should automatically install and enable the extension by default (following: https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html#Defining-the-server-extension-and-nbextension).

If you would like to have it installed but not enabled, simply run

jupyter nbextension disable --py gofer_submit --sys-prefix

To build the extension and enable it,

cd gofer_submit

jupyter nbextension install --sys-prefix static | jupyter nbextension enable --sys-prefix static/index

About

Jupyter notebook extension for submitting assignments to a Gofer Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •