Skip to content

Instantly share code, notes, and snippets.

@tngTUDOR
Created October 22, 2022 08:31
Show Gist options
  • Save tngTUDOR/adb6ef5aced9b004d126d2950b33da66 to your computer and use it in GitHub Desktop.
Save tngTUDOR/adb6ef5aced9b004d126d2950b33da66 to your computer and use it in GitHub Desktop.
Adding a new conda environment to tljh

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment