Pythonpath for jupyter notebooks?

The above solution only sets up the kernel for a notebook not a full environment. microconda activate is looking for an environment in ~/user-envs/, which does not exist.

From the terminal, you can use the default sas environment with your custom PYTHONPATH defined in ~/.bashrc like you were doing it originally.

To add packages from pip to the default sas environment, you can use the --prefix option pointing to the path used in PYTHONPATH: e.g. pip install --prefix /home/ogoann/software/ ...