I am making a python programming tutorial site. I need to somehow provide the user with the opportunity to enter the code for solving the problem, run it and display the result, and also compare with tests and show which tests have failed and which have not. At first, I considered the options for embedding jupyter notebook cells, but for this you need to organize work through several services at once, which is inconvenient and takes a long time. Is it possible to run the code safely (that is, to prevent the user from hacking into my server)? Please advise something.
↧