Adding a new conda/mamba environment to a tljh ( The littlest Jupyter Hub ) that can be recognized by the tljh is done by adding ipykernel
to the packages of the new environment.
- create the environment
- make sure ipykernel is added
sudo -E conda create -n new_env python=3 numpy pandas ipykernel
In theory, this can also be done in the jupyter lab terminal, as an admin user.
Afterwards, tljh will recognize the newly created environment.
If tljh does not recognize the environment, or when sudo -E conda
fails, make sure that conda is in the path of root by:
sourcing /opt/tljh/user/etc/profile.d/conda.sh
as the root (or admin?) user will add the "right" conda binary to the path.