Format Feedback for Sakai
Help format Jupyter notebook homeworks into bulk submission format
This simply takes in a directory full of Jupyter notebook homework assignments
The grades file can be downloaded from Sakai from where you upload the files. This page should contain a link to download a template. Download this once so that you have a list of student names and emails.
python format_feedback_for_sakai.py example_before
example_before is the name of the directory path to search for files.
Python 3.X and pandas
In Sakai, you'll need to download a
grades.csv file. This can be found using
the "Download All" link when you are in a submission page about to grade the
grades.csv file will be put with the flat directory as seen
Here are some more visual instructions on how to do this.
Example Directory Structure
Example directory structure for example directory
grades.csv XXX_Assignment8_BCB_90.ipynb XXX_Assignment8_61.ipynb XXX_Assignment8_BCB_96.ipynb XXX_Assignment8_94.ipynb XXX_Assignment8_96.ipynb XXX_Assignment8.ipynb XXX_Assignment8_BCBa_100.ipynb XXX_Assignment8_100.ipynb XXX_Assignment8_100.ipynb XXX_Assignment8_BCB_80.ipynb XXX_Assignment_8_84.ipynb XXX_Assignment8_92.ipynb XXX_Assignment8_97.ipynb XXX_Assignment8_96.ipynb XXX_Assignment8_80.ipynb XXX_Assignment8_BCB_96.ipynb
Note: The Python script file should be outside this directory containing the graded files. It should be arranged in a similar way as to how this directory is arranged.
Example Jupyter Notebook
The Python script here opens up the Jupyter notebook with the extension
and extracts the first Markdown text block. This text block should contain the
comments you wish to give back to a student.
See here for an example notebook.