Closed adibaba closed 6 years ago
This sounds like a bug with the java kernel, would you mind filing an issue there instead? Specifically, the thing that needs to happen is for the java kernel to send an error message kernel reply, which will cause the notebook to create an "error" output: https://github.com/jupyter/nbformat/blob/master/nbformat/v4/nbbase.py#L55
nbgrader then looks for this error output. If it's assigning full credit, that means that there is no error output on the cell which makes me think it's a problem with the java kernel not sending the right type of response.
Hello,
I was wondering if any progress has happened here? Will have the same issue as the OP soon...
thanks,
HK
Using the IJava kernel, there are two solutions:
The kernel developer provided a comprehensive answer: https://github.com/SpencerPark/IJava/issues/30#issuecomment-420713306
Forget it, I was being stupid; staring at the wrong cells... it seems it might work.
Forget it, I was being stupid; staring at the wrong cells... it seems it might work.
Closing this, as it seems there is a solution using the IJava kernel.
Operating system
cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
nbgrader --version
Python version 3.6.5 | packaged by conda-forge | (default, Apr 6 2018, 13:39:56) [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] nbgrader version 0.5.4
jupyterhub --version
(if used with JupyterHub)0.9.0rc1
jupyter notebook --version
5.5.0
Issue
I am using nbgrader on Jupyterhub with the scijava kernel. Code execution and importing packages works fine. The implementation of autograder tests with assert statements fail. A statement
assert (1==1)
is evaluated and nothing happens, which is fine. But a statementassert (1==2)
produces an error inside the kernel, which is not recognized by nbgrader. Additionally, the autograder assigns full credit.Is there a way to evaluate Java assertions? If not: How can errors be identified to not assign credits?
Expected behavior
Actual behavior
Steps to reproduce the behavior