Last active
October 8, 2022 11:32
-
-
Save dlanner/05e0df7edb862583050c2612ac0d6050 to your computer and use it in GitHub Desktop.
Install JupyterLab on MacOS with Homebrew, miniforge, and mamba
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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