Skip to content

Instantly share code, notes, and snippets.

@lewtun
Created August 31, 2020 15:24
Show Gist options
  • Save lewtun/5cebd98688f3e1522efa1fdeca3e8414 to your computer and use it in GitHub Desktop.
Save lewtun/5cebd98688f3e1522efa1fdeca3e8414 to your computer and use it in GitHub Desktop.
Anaconda with make
.PHONY: install
#################################################################################
# GLOBALS #
#################################################################################
SHELL=/bin/bash
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate
#################################################################################
# COMMANDS #
#################################################################################
install:
conda env create -f environment.yml
@echo "# Installing JupyterLab extensions ..."
($(CONDA_ACTIVATE) my-awesome-env ; jupyter labextension install @jupyter-widgets/jupyterlab-manager)
@echo "# Installation complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment