sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 216 forks source link

nbgrader: update the code stubs #7879

Open williamstein opened 1 week ago

williamstein commented 1 week ago

A user reports that there may be an incompatibility between new versions of nose testing and our nbgrader example stubs. I think they work fine in the default cocalc environments, but this should be tested. Also, I think nose is generally considered deprecated these days, and different unit test framework is in vogue in python-land. Maybe we should switch.

"I would also like to note that when I tried an nb-graded Python coding example the autograded test did not work, "No module called 'imp'". This seems to be an incompatibility between the nose testing package and Python 3.12. Perhaps there's a newer version of nose that works with Python 3.12, I haven't tried to upgrade it from within the CoCalc container. Maybe this is something you might check before you make a new version of cocalc-docker available (I have no idea if this incompatibility is also present in the cloud version of CoCalc)."

haraldschilly commented 1 week ago

IMHO this should be fixed by switching from nose to pynose. It's "on my list", since I saw this in other onprem environments as well.