Extending environment with Conda
Conda basic usage
# List installed packages
conda list
# List existing conda environments
conda env list
# Create and activate a conda environment
conda create --name testenv
conda activate testenv
# Add a library to the environment
# * cuspatial example
conda install -c conda-forge -c rapidsai-nightly cuspatial
python -c 'import cuspatial'
# * scikit-geometry example
conda install -c conda-forge -y scikit-geometry
python -c 'import skgeom'
# Deactivate conda environment
conda deactivate
# Remove conda environment
conda env list
conda env remove --name env_to_delete
Use a conda environment as a notebook kernel
conda activate testenv
conda install ipykernel
python -m ipykernel install --user --name testenv --display-name "Conda test env (testenv)"
Then a new kernel will be available in the launcher tab (reopen launcher if missing).
After that jupyter kernelspec list
allows to list available kernels and jupyter kernelspec uninstall testenv
can be used to remove the kernel if needed before removing the conda virtual environment itself.