jupyter / nbgrader

A system for assigning and grading notebooks
https://nbgrader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.29k stars 317 forks source link

nbgrader: command note found #1490

Open MansurCompAI opened 3 years ago

MansurCompAI commented 3 years ago

Hi there. I would appreciate if you guys help me to solve the problem regarding autograde. I am trying to automate the task which is "nbgrader autograde " using crontab. However, getting error " nbgrader: command not found" (in the email).

this is my bash:

echo $(nbgrader autograde "data_analysis")
echo $(nbgrader feedback "data_analysis")

this one is crontab:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/1 * * * * cd /home/ec2-user/PROJECTS/notebooks_nb_update/notebooks && ./bash.sh

Interestingly, If I run the bash itself, nbgradre is working.

jhamrick commented 2 years ago

Likely nbgrader is not on the PATH that your crontab has access to. You can find out the full path to nbgrader with which nbgrader, and then either use the absolute path in your script or include the directory where nbgrader lives in your crontab path.