Skip to content

Setting up a Scikit Learn notebook with MLeap and Jupyter

Mikhail Semeniuk edited this page Dec 25, 2016 · 2 revisions

Install Jupyter and Toree

We are going to assume you already have the following installed:

  1. Python 2.x
  2. Docker (required to install Toree)

Install Jupyter

virtualenv venv

source ./venv/bin/activate

pip install jupyter

Build and install Toree

You can skip this step if you're only running python.

Otherwise, clone master into your working directory from Toree's github repo.

For this next step, you'll need to make sure that docker is running.

$ cd incubator-toree

$ make release

$ cd dist/toree-pip

$ pip install .

SPARK_HOME=<path to spark> jupyter toree install

Install MLeap

First, clone MLeap master into your working directory from our github repo.

Then activate your virtual environment and install mleap:

virtualenv venv

source ./venv/bin/activate

cd mleap/python

python setup.py install