Subprocess initiated from Jupyter notebook does not use the same python virtual environment. Why and how to fix?
I am exectuting a python script as a subprocess. Doing this from a regular module ineherits the virtual environment but when I do it inside a Jupyter notebook, the subprocess is using the system python. Why is this and how can I fix it in a platform independent way? (I do not know what virtual environments will be used by other users.)