Install JupyterLab with Miniconda (Linux) and create a dedicated environment
This guide explains step by step how to install Miniconda and then JupyterLab using only copy-and-paste commands.
1. Log in to the login node and download Miniconda
Download the official installer with the following command:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
2. Run the installer
bash Miniconda3-latest-Linux-x86_64.sh
Then follow the steps:
- Press Enter to scroll through the license
- Type
yesto accept - Confirm the default installation directory (recommended)
3. Activate Conda
Reload your terminal configuration:
source ~/.bashrc
Check the installation:
conda --version
4. Create a Jupyter environment
conda create -n jupyterlab_env python jupyterlab -y
This creates an isolated environment named jupyterlab_env.
This environment, once activated, will provide access to the jupyter command.
5. Activate the environment
conda activate jupyterlab_env
The name (jupyterlab_env) should appear at the beginning of the terminal prompt.