conda create --name myenv
with specific python version:
conda create -n myenv python=3.6
activate your env
conda activate myenv
install ipykernel into your env and create a kernel
conda install ipykernel
ipython kernel install --user --name=<any_name_for_kernel>
now, if you start jupyter lab (type jupyter lab
into your command line) and choose the respective kernel, your env is available.
conda env export --from-history > environment.yml
delete the "prefix" line when sharing (??)
1.create env
conda env create -f environment.yml
2.add kernel
ipython kernel install --user --name=<any_name_for_kernel>
now, if you start jupyter lab (type jupyter lab
into your command line) and choose the respective kernel, your env is available.
conda env update -f environment.yml --prune
useful links: