Skip to content
Snippets Groups Projects
Commit c8291167 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

conda kernel script

parent 2d07c2c4
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# By MB
# Jumpstart a python environment for my students
# Activate anaconda module
module load anaconda3
# Create a new kernel that is based on anaconda, but with some additional packages
# potentially specify which python version, e.g. python=3.8
conda create -y -n ClimatePy3 numpy ipykernel zarr
# This will create a ~/.conda/envs/ClimatePy3/ directory
# using ~/.conda/envs/ClimatePy3/bin/python3 in a script is possible
# activate that environment by sourcing the conda environment
source $(dirname $(which conda))/../etc/profile.d/conda.sh
# and activating your new
conda activate ClimatePy3
# deactivate environment
conda deactivate
# FIN
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment