NBGrader with cling kernel
See original GitHub issueOperating system
Linux Debian wheezy
nbgrader --version
nbgrader version 0.5.4
jupyterhub --version
(if used with JupyterHub)
jupyter notebook --version
5.5.0
Expected behavior
I am using the C++ cling kernel with NbGrader and running into some issues.
- assert(false) or another method causes 0 points and program continues.
- cell execution if it throws uncaught exception, lets the kernel continue
Actual behavior
- using the assert function in C/C++ does not cause test to fail assert(false) gets full credit I think assert in C++ cling has no effect in production mode. There should be another method provided
- If the execution of a cell leads to uncaught exception, cling should not hang but continue.
Problem 2 is probably a problem with the kernel.
Steps to reproduce the behavior
Install a cling kernel and NbGrader . Also I use the following nbgrader_config.py : c = get_config() c.Exchange.course_id = “AlgoProj1” c.Exchange.root = “/mnt/nfs/dcdemo110@gmail.com/share” c.ExecutePreprocessor.kernel_name = “cling-cpp17” c.ClearSolutions.code_stub = { “R”: “# your code here\nraise NotImplementedError”, “python”: “# your code here\nraise NotImplementedError”, “javascript”: “// your code here, make sure it compiles or no grade for the whole notebook\n return 0;”, “C++”: “// your code here\n throw NULL;” }
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Nbgrader and other programming languages - Education
I am thinking about whether I could use this, for example, to grade notebooks that depend on other language kernels, like Java, C++,...
Read more >nbgrader 0.7.2.dev documentation - Read the Docs
It is up to the Jupyter kernel to write an error message to the standard error stream, otherwise autograder doesn't work (this has...
Read more >C++ - Lab.Computer Docs
Open terminal. We provide a package for the conda package manager. Installing xwidgets and the C++ kernel. conda install xeus-cling xwidgets -c conda-forge....
Read more >AUR (en) - Packages - Arch Linux
cling -jupyter-dev, v0.7-2, 0, 0.00, Interactive C++ interpreter (includes ... common-lisp-jupyter-git, r584.4e4d1f4-1, 0, 0.00, A Common Lisp kernel for ...
Read more >jupyterhub/jupyterhub - Gitter
... like recent changes to jupyterhub are causing problems for nbgrader tests. ... I've added a kernel spec into ~/.ipyton/kernels but it is...
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
Yes, makes sense to close I think, thanks for confirming @nthiery that it works with xeus-cling at least!
I can confirm that nbgrader works very smoothly with xeus-cling. Maybe this issue can be closed? This is really a bug of the plain cling kernel.