anchor.diff:  USER root
   
   # libav-tools for matplotlib anim
  +# NEURON dependencies start at autotools-dev
   RUN apt-get update && \
  -  apt-get install -y --no-install-recommends libav-tools && \
  -  apt-get install -y git \
  -                     gcc \
  -                     g++ \
  -                     gfortran \
  -                     libatlas-dev \
  -                     libatlas-base-dev \
  -                     libfreetype6-dev && \
  +    apt-get install -y --no-install-recommends \
  +                    libav-tools && \
  +                    git \
  +                    gcc \
  +                    g++ \
  +                    gfortran \
  +                    libatlas-dev \
  +                    libatlas-base-dev \
  +                    libfreetype6-dev \
  +                    autotools-dev \
  +                    autoconf \
  +                    automake \
  +                    libtool \
  +                    bison \
  +                    flex \
  +                    xfonts-100dpi \
  +                    libncurses5-dev \
  +                    libxext-dev \
  +                    libreadline-dev \
  +                    libopenmpi-dev \
  +                    openmpi-bin \
  +                    openmpi-doc \
  +                    openmpi-common \
  +                    liblapack-dev \
  +                    libblas-dev \
  +                    libxft-dev \
  +                    mercurial \
  +                    mercurial-common && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
   # Official Debian and Ubuntu images automatically run apt-get clean
  
positive.code: #USER jovyan
  
  #USER root
  # Dependencies
  RUN apt-get update && \
    apt-get -y install autotools-dev \
               autoconf \
               automake \
               libtool \
               bison \
               flex \
               xfonts-100dpi \
               libncurses5-dev \
               libxext-dev \
               libreadline-dev \
               libopenmpi-dev \
               openmpi-bin \
               openmpi-doc \
               openmpi-common \
               liblapack-dev \
               libblas-dev \
               libxft-dev \
               mercurial \
               mercurial-common
  
  ENV NDIR /opt/neuron
  ENV NRNPY python3
  
negative.code: ## Install for Python 3
  #RUN pip install pyrho[full]==$VPYRHO
  RUN pip install git+https://github.com/ProjectPyRhO/PyRhO.git#egg=PyRhO[full]
  #RUN pip install brian2tools
  ## Install for Python 2
  #RUN $CONDA_DIR/envs/python2/bin/pip install pyrho[full]==$VPYRHO
  RUN $CONDA_DIR/envs/python2/bin/pip install git+https://github.com/ProjectPyRhO/PyRhO.git#egg=PyRhO[full]
  #RUN $CONDA_DIR/envs/python2/bin/pip install brian2tools
  # Alternative to installing for Python 2
  #RUN source activate python2
  #RUN pip install --ignore-installed --no-deps pyrho[full]
  