-
Notifications
You must be signed in to change notification settings - Fork 0
Python environments
PLACEHOLDER
Basic kernel management on the SMCE via the SHIFT SMCE documentation
**NOTE: **The default location for new conda environments in the Airborne SMCE is: ${HOME}/user_envs
Example 1: Setting up a basic geospatial environment
Working directory: ${HOME}/Github/airborne-smce-environments/python/pygeo
conda env create --file pygeo.yml
This will create a new conda environment called pygeo
To make this new kernel available in your jupyter-hub environment, you can run:
conda activate <your-env-name>, for example conda activate pygeo
pip install ipykernel
python -m ipykernel install --user --name=pygeo
You will now see the new kernel as an option in the launcher, for example:

Example 2: Setting up the HYR-SENSE environment
From your ${HOME}, you can start by running the conda create command, e.g.
conda env create --file Github/airborne-smce-environments/python/hyrsense/hyrsense.yml
This will create a new conda environment called hyr-sense
To make this new kernel available in your jupyter-hub environment, you can run:
conda activate <your-env-name>, for example conda activate hyr-sense
pip install ipykernel
python -m ipykernel install --user --name=hyr-sense
You will now see the new kernel as an option in the launcher, for example: