anchor.diff:  RUN pip --no-cache-dir install 'jupyterhub==0.5'
   
   USER root
  +
  +# Install Python 2 kernel spec globally to avoid permission problems when NB_UID
  +# switching at runtime.
  +RUN $CONDA_DIR/envs/python2/bin/python -m ipykernel install
   
   # Configure container startup as root
   EXPOSE 8888
  
positive.code:     mkdir -p -m 700 /home/$NB_USER/.local/share/jupyter && \
      echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc
  
  
  # Install conda as NB_USER
  RUN cd /tmp && \
      mkdir -p $CONDA_DIR && \
  
negative.code: COPY jupyter_notebook_config.py /home/$NB_USER/.jupyter/
  RUN chown -R $NB_USER:users /home/$NB_USER/.jupyter
  
  # Add any extra requirements. Done at end to avoid cache busting.
  ADD requirements.txt requirements.txt
  RUN pip install -r requirements.txt
  RUN wget https://github.com/matplotlib/basemap/archive/v1.0.7rel.tar.gz
  RUN pip install v1.0.7rel.tar.gz
  RUN rm v1.0.7rel.tar.gz
  
  ADD ../rstudio/install_packages.R install_packages.R
  RUN /usr/bin/Rscript install_packages.R; rm install_packages.R
  
  EXPOSE 8888
  USER $NB_USER
  