To install, do the following in commandline:
clone MLsandbox on your local machine:
$ git clone https://github.com/NickiRom/MLsandbox
navigate to MLsandbox/
$ cd MLsandbox
set up virtual environment within MLsandbox
- if virtualenv is not yet installed, start with pip install virtualenv
- if virtualenv is giving an error, see bottom of README for alternate option
$ virtualenv venv
start virtual environment
$ source venv/bin/activate
install the package and its dependencies
$ pip install .
start exploring notebooks!
$ cd MLsandbox/notebooks/
$ jupyter notebook
when finished, deactivate the virtual environment
$ deactivate
# Gotchas:
## ** If virtualenv venv command gives the following error: **
OSError: ... setuptools pip wheel failed with error code 1
Then please use a virtual environment from conda instead: [https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/](conda env)
- $ conda create -n yourenvname python=x.x anaconda
- $ source activate yourenvname
- $ pip install .
## If you're unable to import MLsandbox:
- check that you've opened jupyter notebook from within a virtual environment
- check MLsandbox/venv/lib/python2.7/site-packages/ for the MLsandbox package
- cd to MLsandbox/ and run the following command:
- $ python -m pip install --upgrade .