Setting up a local install of Jupyter

The only installation you are recommended to do is to install Anaconda 3.5, so that you have a backup when the OIT version is flaky. The other kernels and the Docker version are not required and you should only do so if you are comforatble with command line installs. Even the Anaconda 3.5 installation is optional if the OIT version works well for you.

Note: I have only done this on OSX 10.11.2 (El Capitan) with XCode and command line compilers installed.

To install Anaconda for Python 3.5

Download and install Anaconda Python 3.5 from

Open a terminal

conda update conda
conda update anaconda

(OPTIONAL) To install Python 2.7 as well

Open a terminal

conda create -n py27 python=2.7 anaconda
source activate py27
ipython kernel install
source deactivate

(OPTIONAL) To install R

  • If you want conda to manage your R packages
conda install -y -c r r-irkernel r-recommended r-essentials

Note: The bug that required this appears to have been fixed
wget \ \
    && conda install --yes ncurses-5.9-1.tar.bz2 nlopt-2.4.2-1.tar.bz2
  • If you have an existing R installation that you want to use

Start R

                 repos = c('', getOption('repos')))

(OPTIONAL) To install Julia

Download and install Julia from

Start Julia


(OPTIONAL) To install pyspark

Open a terminal

conda install -y -c anaconda-cluster spark


Open terminal

jupyter notebook

See if the installed kernels are found in the drop-down menu.

(OPTIONAL) Installing Spark via Docker

Be patient - this can take a while the first time you do it

When done, it shouuld show something like this

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/

docker is configured to use the default machine with IP
For help getting started, check out the docs at

Note the IP address given - you will need this to access the notebook.

In the Docker terminal

docker run -d -p 8888:8888 jupyter/all-spark-notebook

Check by typing in the Docker terminal

docker ps

Be patient - this can take a while the first time you do it.

It shoudl show something like

CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                    NAMES
965a6a80bf44        jupyter/all-spark-notebook   "tini -- start-notebo"   4 minutes ago       Up 4 minutes>8888/tcp   big_kilby

Note the machine name (mine is big_kilby, yours will likely be different).

Open your browser at the following URL (Use the IP given above)

This should bring you to a Jupyter notebook. Open a Python3 notebook from the drop dwon menu and test:

import pyspark
sc = pyspark.SparkContext('local[*]')

# do something to prove it works
rdd = sc.parallelize(range(1000))
rdd.takeSample(False, 5)

If successful, you should get a list of 5 integers after a short delay.

Save and exit the notebook.

Cleap up in the Docker terminal

docker stop big_kilby

Use the machine name foudnd with docker ps in place of big_kilby.

In [ ]: