Skip to content

nbbgrader on jupyterhub with LUA and OCaml Kernels #1806

Open
@Mad31

Description

@Mad31

Operating system

Ubuntu 22.04.2 LTS in a docker

nbgrader --version

  • Python version 3.10.6
  • nbgrader version 0.8.4

jupyterhub --version (if used with JupyterHub)

  • 4.0.1

jupyter notebook --version

  • 6.5.4

Expected behavior

Using grader with the OCaml Kernel

Actual behavior

All is working fine when i try to grade Notebook with Lua-Notebook (kernel https://github.com/guysv/ilua), but when i try to grade notebooks with OCalml Kernel (https://github.com/akabe/ocaml-jupyter) , i have an error :

File "/usr/local/lib/python3.10/dist-packages/nbgrader/preprocessors/execute.py", line 83, in on_cell_executed
        if output.output_type == 'error' and output.ename == reply["content"]["ename"]:
    KeyError: 'ename'

I have tried to edit execute.py and remove the second test and output.ename == reply["content"]["ename"], and now it's working fine..

Is this test important ?

remark1 :
this error doesn't appear in my former nbgrader (V0.6).

remark2 :
Il have edited the ClearSolution. py and add the following lines in the code_stub dictionnary (working fine) :

             OCaml="(* Tapez votre code ici*)",
             lua="-- Tapez votre code ici",
             c = "// Tapez votre code ici",

Thx for helping

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions