-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (47 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Using local install without isolation.
# For isolated environments, see the approaches below.
install:
pip3 install -r requirements.txt --user
~/.local/bin/jupyter nbextension enable --py widgetsnbextension
run:
~/.local/bin/jupyter notebook
## ----------------------------------------------------------------------
## Using virtualenv and virutalenvwrapper
## Assumes virualenvwrapper is set:
## export WORKON_HOME=~/.virtualenv
## source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
#install:
# mkvirtualenv -a . ai-search
# workon ai-search
# pip3 install -r requirements.txt
# jupyter nbextension enable --py widgetsnbextension --sys-prefix
#
#run:
# workon ai-search
# jupyter notebook
#
#
## ----------------------------------------------------------------------
## Using Python3 venv
#
#install:
# python3 -m venv env/
# source env/bin/activate
# pip3 install -r requirements.txt
# jupyter nbextension enable --py widgetsnbextension --sys-prefix
#
#run:
# source env/bin/activate
# jupyter notebook
#
## ----------------------------------------------------------------------
## Using anaconda
#
#install-conda:
# conda create -n ai-search python=3.6 anaconda # TODO: + jupyter, matplotlib, pandas
# source activate ai-search
# jupyter nbextension enable --py widgetsnbextension --sys-prefix
#
#run-conda:
# source activate ai-search
# jupyter notebook