Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Last active March 1, 2018 02:05
Show Gist options
  • Select an option

  • Save damienstanton/d45c40e86f9315be55812a8b602b3091 to your computer and use it in GitHub Desktop.

Select an option

Save damienstanton/d45c40e86f9315be55812a8b602b3091 to your computer and use it in GitHub Desktop.
python script
# macOS DL bundle
pylint
yapf
jupyterlab
numpy
scipy
scikit-image
scikit-learn
pillow
matplotlib
pandas
dask
opencv-python
http://download.pytorch.org/whl/torch-0.3.1-cp36-cp36m-macosx_10_7_x86_64.whl
torchvision
pyro-ppl
cython
#!/bin/bash
case $1 in
deps)
if [ ! -d "env" ]; then python3 -m venv env; fi
source env/bin/activate && pip install --upgrade -r requirements.txt
;;
repl)
source env/bin/activate && ipython "${@:2}"
;;
lab)
source env/bin/activate && jupyter lab "${@:2}"
;;
tests)
source env/bin/activate && pytest "${@:2}"
;;
*)
echo "call 'run' with one of the following args: 'deps', 'repl', 'lab', 'tests'"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment