question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formgrader says to run the autograde command from the wrong folder

See original GitHub issue

I created an assignment entirely using the formgrader interface (in the browser). I successfully grade a handful of students by clicking on the lightning bolt icon under the “Autograde” column. But I don’t want to click each one individually so I try the command line version, running the commands suggested at the top of the page:

cd "/mnt/classdat/psy360"
nbgrader autograde "ps0"

This initially gives me an error saying the assignment is not in the database. I add it with nbgrader db assignment add ps0 --duedate="2019-9-27 20:30:00 UCT" and try rerunning autograde. Now it gives me the error No notebooks found, did you forget to run 'nbgrader generate_assignment'?

I’m not sure what to do now. I’m worried that generate_assignment will overwrite the assignment that I generated (and released) earlier using the formgrader interface. It is very odd to me that the GUI interface would work but the command line interface would throw errors. Shouldn’t these be ultimately be calling the same backend functions?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jhamrickcommented, Nov 3, 2019

Another thing that might work is to try running the autograde command from /mnt/classdat instead of /mnt/classdat/psy360.

I really need to add some better documentation about where config files need to live and where the respective commands need to be run from, sorry for the confusion!

0reactions
jhamrickcommented, Nov 3, 2019

Yes, that sounds fine to me. Let’s leave this issue open though (I will rename the title) so that I can fix the path it tells you to run commands from (for myself: I think the path should probably been the notebook directory rather than the course root, but I need to check this).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently asked questions — nbgrader 0.8.1 documentation
Can I use nbgrader for purely manually graded assignments (i.e., ... cells and then during grading run nbgrader autograde and the formgrader as...
Read more >
Autograding programming assignments with nbgrader - Dr. B
Now from your notebook, click Formgrader , then click Manage Students . You can add first_name, last_name, etc from the formgrader with ease....
Read more >
setting up nbgrader for multiple graders with jupyterhub
The way I've been doing this for my classes is to have only one person run the official commands (nbgrader release, nbgrader collect,...
Read more >
- Datahub/DSMLP Grading Tool - nbgrader - Services & Support
To see the nbgrader website instructions that include Formgrader, ... When running the autograding, the cell will pass if no errors are raised, ......
Read more >
nbgrader A Tool for Creating and Grading Assignments in the ...
As usage of the Jupyter notebook in scientific computing becomes increasingly ubiquitous, so too does its presence in classrooms.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found