I would like to implement interactive exercises in Jupyter notebooks by evaluating text entered into ipythonwidget’s text inputs and then displaying feedback.
If I place the code for evaluating the text input (which basically contains the solution to the exercise) directly into the notebook or into an external module, users (students) can quickly find it.
Therefore, I thought of placing the code for evaluating the answers into separate files and compile them to bytecode.
Would this be sufficient to hide the solution?
(The exercises are not that difficult that it’s worth reverse engineering/disassembling the bytecode.)
Is there another way to hide the code for evaluating the text input from users (students)?