This repository was archived by the owner on May 22, 2025. It is now read-only.

Description
persistent-conda-ebs:
I successfully created a new env in my Notebook Instance called custom_persistent_python using OnCreate and OnStart sripts on /persistent-conda-ebs. I've installed some of the common libraries via the OnCreate script but, what happens if I need a new one?
I've tried:
- Installing it in a shell (after
source activate /home/ec2-user/SageMaker/custom-miniconda/miniconda/envs/custom_persistent_python).
- Via a Notebook (
!command) in the custom env.
In both cases, library seems to install ok, but it can't be used inside the Notebook (No module named xxxx), not even after Restart kernel.
I've checked the $CONDA_DEFAULT_ENV inside the Notebook and it gives JupyterSystemEnv. Does this mean I'm not inside my custom environment?
How to install new libraries, not included in the OnCreate script, that are also persistent in my new env?