codecheck2 icon indicating copy to clipboard operation
codecheck2 copied to clipboard

feature: Add popular Python modules to codecheck server

Open jmr-ua-pt opened this issue 1 year ago • 0 comments

When teaching programming to general engineering, math and sciences students, it is quite common to use popular modules such as numpy, matplotlib and pandas, for instance.

However, CodeCheck is not currently prepared to run code that imports these modules. Check this problem, for example. When you run it, you should get the error report:

Traceback (most recent call last):
  File "/tmp/codecheck/workYGnngVhSDjCreyGBPAG9/submissionrun1/prog.py", line 2, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

Editing the problem to include the full numpy package would not be easy, and probably not a good idea, because of the size and because it may comprise binary code files. On the other hand, upgrading the server's Python library with these add-ons should be fairly easy for the administrator to do, and every user could benefit from this.

jmr-ua-pt avatar Oct 05 '24 11:10 jmr-ua-pt