"manually graded task" cells cause metadata error
See original GitHub issueOperating system
MacOS 10.15.2
nbgrader --version
Python version 3.7.4 (default, Aug 13 2019, 15:17:50) [Clang 4.0.1 (tags/RELEASE_401/final)] nbgrader version 0.6.1
jupyterhub --version
(if used with JupyterHub)
Not using JupyterHub.
jupyter notebook --version
6.0.1
Expected behavior
With the “create assignment” cell toolbar, I should be able to set a code cell’s type to “Manually graded task” and then have the notebook pass a Validation button test.
Actual behavior
Whenever I set any code cell in the notebook to “Manually graded task” – even the only cell in the notebook, even if it has no content or just contains pass
– clicking the Validate button throws the following error:
Traceback (most recent call last):
File "/Users/ibeatty/anaconda3/lib/python3.7/site-packages/nbgrader/server_extensions/validate_assignment/handlers.py", line 46, in validate_notebook
result = validator.validate(fullpath)
File "/Users/ibeatty/anaconda3/lib/python3.7/site-packages/nbgrader/validator.py", line 311, in validate
nb = self._preprocess(nb)
File "/Users/ibeatty/anaconda3/lib/python3.7/site-packages/nbgrader/validator.py", line 290, in _preprocess
nb, resources = pp.preprocess(nb, resources)
File "/Users/ibeatty/anaconda3/lib/python3.7/site-packages/nbgrader/preprocessors/checkcellmetadata.py", line 16, in preprocess
raise ValidationError(msg)
jsonschema.exceptions.ValidationError: Notebook failed to validate; the nbgrader metadata may be corrupted.
Markdown cells do not have this problem.
Steps to reproduce the behavior
- Start jupyter notebook with
jupyter notebook
from the command line. - Create a new Python 3 notebook.
- Turn on the Create Assignment toolbar from the View menu -> Cell Toolbar
- Use the cell toolbar to change the automatically created, empty code cell’s type to Manually Graded Task. (It doesn’t matter whether the cell is empty or alone.)
- Click the Validate button.
Boom.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Creating and grading assignments - nbgrader - Read the Docs
A manually graded task asks students to perform a task with cells. The common use case for this type of cell is for...
Read more >When Submissions go wrong - Noteable - EDINA
Edit any " Autograde test ", " Manually graded task ", or " read-only " cells. Submission not listed. In this situation, the...
Read more >Autograding programming assignments with nbgrader - Dr. B
A manually graded task asks students to perform a task with cells. ... Note that the code stub itself doesn't have to cause...
Read more >Autograding - Aalto scientific computing
[ERROR] One or more notebooks in the assignment use an old version of the nbgrader metadata format. Please **back up your class files...
Read more >Lesson 7 - Understanding GIS Error, Accuracy, and Precision ...
Metadata is data about data. We'll explore these topics in more detail in this lesson. Screen capture from the National Atlas Web. Figure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it is intended that a “manually graded task” cell should not be a code cell?
And thanks for the second link, that was a little more understandable.
The two cells act differently.
See https://nbgrader.readthedocs.io/en/stable/user_guide/creating_and_grading_assignments.html … and https://noteable.edina.ac.uk/nbguide/#section_ca - which may be slightly clearer