Skip to content

Python environments

Shawn P. Serbin edited this page May 20, 2025 · 20 revisions

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

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:

Screenshot 2025-05-19 at 3 12 46 PM


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:

Clone this wiki locally