File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
notebook_lifecycle_scripts_examples Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2-
2+
3+ # This file allows you to install a custom conda environment
4+ # If you want to install a service conda provided by OCI DS, modify line 22 to odsc conda install -s "$ENV_NAME"
5+
36# enable conda commands
47source /etc/profile.d/enableconda.sh
5-
8+
69# Replace this with name of the conda environment to create or activate
710ENV_NAME=" {ODSC_CONDA_PACK_SLUG}"
8-
11+
912# Path to the conda environment folder
1013ENV_FOLDER=" $HOME /conda"
11-
14+
1215# Check if the conda environment exists
1316if [ -d " $ENV_FOLDER /$ENV_NAME " ]
1417then
1720 echo " Conda environment '$ENV_NAME ' not found, installing..."
1821 odsc conda install -s " $ENV_NAME " -o
1922fi
20-
23+
2124# Activate the conda environment
2225conda activate " $ENV_FOLDER " /" $ENV_NAME "
23-
24- echo " Conda environment '$ENV_NAME ' is now activated."
26+
27+ echo " Conda environment '$ENV_NAME ' is now activated."
You can’t perform that action at this time.
0 commit comments