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.

"manually graded task" cells cause metadata error

See original GitHub issue

Operating 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

  1. Start jupyter notebook with jupyter notebook from the command line.
  2. Create a new Python 3 notebook.
  3. Turn on the Create Assignment toolbar from the View menu -> Cell Toolbar
  4. 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.)
  5. Click the Validate button.

Boom.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
AnnabellBrockercommented, Aug 2, 2021

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.

0reactions
perllaghucommented, Aug 2, 2021
Read more comments on GitHub >

github_iconTop 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 >

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