-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --no-metadata option to nbgrader assign #407
Conversation
Cool, thanks! That seems useful. To recap for those who didn't follow #403 this means you can just use ### BEGIN SOLUTION and ### END SOLUTION in your cells and nbgrader will just strip those regions. Lightweight use of nbgrader for sure, but useful for manually graded problem sets. |
... well kind of cool. I can't install flit, so I can't install the development version of nbgrader. Probably because I still use python2.7? So I can't test this. |
Oh, bleh, yeah, because flit is python 3 only. I should create an installation script or something that makes this a bit more friendly to do a development install. In the meantime, you can do:
and hopefully that should work (that's how I do the installation on travis). I'll make another PR now that reduces the complexity of this installation, sorry again about that! |
Hmmm, same error:
|
... also I'm not sure how this works for markdown cells (which I also expect answers in). ### BEGIN SOLUTION renders as heading 3 in markdown. Even if it is properly stripped by I guess I'm fine w/ using the meta data and just ignoring the warning about not naming the cells (or in my case, removing that check from the main.js source code). |
OK, downloaded the individual files that you changed, at it works fine for me. I can still use the cell metadata to specify read-only or manual-grading, which I like. ### BEGIN SOLUTION also works in both code and markdown cells. So, I think this is a decent solution for my needs. Thanks a lot! |
@jklymak yeah, unfortunately python comment markers are the same as headings in markdown :-/ I could change it so that you don't need to include the comment mark in the markdown cells, but I'm worried that's going to make things too complicated. One option would be to configure the ClearSolutions preprocessor so that it uses multiline strings instead of comments:
and then in your cells (both code and markdown) you would use |
Add --no-metadata option to nbgrader assign
Fixes #403
This allows you to run
nbgrader assign --no-metadata
and it will not perform any metadata validation or modify it either. Can be used in conjunction with--no-db
to just replace solution regions and not use the "Create Assignment" toolbar or save anything into the database.cc @jklymak