Skip to content

Instantly share code, notes, and snippets.

@dlanner
Last active October 8, 2022 11:32
Show Gist options
  • Select an option

  • Save dlanner/05e0df7edb862583050c2612ac0d6050 to your computer and use it in GitHub Desktop.

Select an option

Save dlanner/05e0df7edb862583050c2612ac0d6050 to your computer and use it in GitHub Desktop.
Install JupyterLab on MacOS with Homebrew, miniforge, and mamba
# Install Homebrew
if ! command -v brew &>/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Mamba can be installed by conda, which comes with miniforge
if ! command -v conda &>/dev/null; then
brew install miniforge
conda init "$(basename "${SHELL}")"
fi
# Install mamba
if ! command -v mamba &>/dev/null; then
conda install mamba -n base -c conda-forge
fi
# Install JupyterLab
if ! command -v jupyter-lab &>/dev/null; then
mamba install -c conda-forge jupyterlab
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment