Managing Environments
Creating Environments
Empty Environment
-
Create the environment:
conda create -n demo_env
-
Activate the environment: (don’t forget this!)
conda activate demo_env
-
Install packages:
conda install ipykernel numpy pandas
Environment with Required Packages
Do it all in one line:
conda create -n demo_env ipykernel numpy pandas
Adding Environments as Jupyter Kernels
Ensure your environment has ipykernel
installed:
conda activate demo_env
conda install ipykernel
Then, add the kernel to Jupyter:
ipython kernel install --user --name=demo_env