I want to provide jupyterhub users with some proprietary modules in jupyter notebooks. However, one can use
import inspect to view the source code. How can I prevent that?
I have seen in Quantopian notebooks that
import inspect is forbidden. How is blocking an import statement like this implemented?
Also, what’s the best way to provide the modules without having an explicit directory in the notebook server of a user? I’d imagine something to do with adding source code to the docker image. I’d appreciate if someone could point me in the right direction.