So first you can create env based on environment.yml
file and make prefix as env
.
conda env create -f environment.yml --prefix ./.conda
Then you can activate the environment.
conda activate ./.conda
Then you can open the notebook.
jupyter notebook
You can install other libraries using pip
or conda
in the same environment.
conda install -c conda-forge matplotlib
pip install matplotlib
If you install any other libraries, you can re-export the environment using the following command.
conda env export | grep -v "^prefix: " > environment.yml