-
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
*** NOTE!! need to replace with instructions using mamba not conda install. works faster and better, that was an error
Example 1: Setting up a basic geospatial environment
Working directory: ${HOME}/Github/airborne-smce-environments/python/pygeo
conda env create --file pygeo.yml
or better using mamba, e.g.
mamba 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:

You can also remove that environment by running, e.g.
mamba remove -n pygeo --all
and then clean up your Jupyter kernels
List existing kernels jupyter kernelspec list
Remove a Kernel jupyter kernelspec uninstall pygeo
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
or
mamba 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: