This briefly describes how to install a Python virtual environment for the Geospatial course.
- Install miniconda from https://docs.conda.io/en/latest/miniconda.html
- Install mamba
conda install mamba -n base -c conda-forge
- Clone the course from GitHub
https://github.com/RUG-Elective/Notebooks_official.git
- Change into the working directory with the cloned environment file (yml)
cd python-environments
- Create the python environment using mamba
mamba env create -f geospatial-student.yml
- Activate the new environment
conda activate geospatial-student
- Install JupyterLab
pip install jupyterlab
- Install a new kernel (ipykernel) for the virtual environment
pip install ipykernel
- Register the environment as a kernel, give it a name and a display name
python -m ipykernel install --user --name geospatial-student --display-name "Python (geospatial-student)" - Run Jupyterlab
jupyter lab