Last active
March 1, 2018 02:05
-
-
Save damienstanton/d45c40e86f9315be55812a8b602b3091 to your computer and use it in GitHub Desktop.
python script
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
| # 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 |
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
| #!/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