anchor.diff:  # http://irkernel.github.io/installation/
   RUN yum -y install czmq-devel && yum clean all
   
  -RUN R -e 'install.packages(c("pbdZMQ", "devtools"))' \
  -	&& R -e 'devtools::install_github(paste0("IRkernel/", c("repr", "IRdisplay", "IRkernel")))'
  -
  +RUN R -e 'install.packages("devtools")'
  +RUN R -e 'install.packages("pbdZMQ")'
  +RUN R -e 'devtools::install_github("IRkernel/IRkernel")'
  +RUN R -e 'IRkernel::installspec()'
   RUN cp -r /usr/lib64/R/library/IRkernel/kernelspec /usr/local/conda/anaconda3/share/jupyter/kernels/R
   
   # Optional configuration file for svn
  
positive.code: # Init package folder on root's home folder
  RUN julia -e 'Pkg.init()'
  
  
  ##### CHECAR DAQUI PRA BAIXO
  
  # https://anaconda.org/conda-forge/jupyterhub -> instala node 6.2 e configurable-http-proxy
  RUN /usr/local/conda/anaconda3/bin/conda install -c conda-forge jupyterhub
  
  RUN ln -s /usr/local/conda/anaconda3/bin/jupyterhub /usr/local/bin/jupyterhub
  
  # for Jupyter
  RUN npm install -g configurable-http-proxy
  
  # Jupyter
  # Add python2.7 kernel: https://github.com/jupyter/jupyter/issues/71
  #RUN pip2 install \
  #	IPython \
  #	notebook \
  #	ipykernel \
  #	ipyparallel \
  #	enum34 \
  #	&& python2 -m ipykernel install
  
  #RUN pip3 install \
  #	IPython \
  #	jupyterhub \
  #	notebook \
  #	ipykernel \
  #	ipyparallel \
  #	enum34 \
  #	&& python3 -m ipykernel install
  
  # ipywidgets: https://github.com/ipython/ipywidgets
  #RUN pip3 install ipywidgets \
  #	&& pip2 install ipywidgets \
  #	&& jupyter nbextension enable --py --sys-prefix widgetsnbextension
  
  # Support for other languages
  # https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
  
  # Add Julia kernel
  # https://github.com/JuliaLang/IJulia.jl
  # https://github.com/JuliaLang/IJulia.jl/issues/341
  
negative.code: 
  ENV CMAKE_ROOT /usr/local/share/cmake-$CMAKE_VER_MAJ
  
  # node
  #ENV NODE_VER 7.6.0
  
  #RUN wget https://github.com/nodejs/node/archive/v$NODE_VER.tar.gz \
  #	&& tar xf v$NODE_VER.tar.gz && cd node-$NODE_VER \
  #	&& ./configure \
  #	&& make -j"$(nproc --all)" \
  #	&& make -j"$(nproc --all)" install \
  #	&& cd .. && rm -f v$NODE_VER.tar.gz && rm -rf node-$NODE_VER
  
  # reinstall npm with the lastest version
  # Workaround https://github.com/npm/npm/issues/15558
  # with https://github.com/npm/npm/issues/15611#issuecomment-289133810
  #RUN npm install npm \
  #	&& rm -rf /usr/local/lib/node_modules \
  #	&& mv node_modules /usr/local/lib/
  
  # Makes npm work behind proxy if http_proxy variable is set
  #RUN npm config set proxy ${http_proxy} \
  #	&& npm config set https-proxy ${https_proxy} \
  #	&& npm config set registry http://registry.npmjs.org/ \
  #	&& npm set strict-ssl false
  
  # for Jupyter
  #RUN npm install -g configurable-http-proxy
  
  # Conda
  #RUN wget https://repo.continuum.io/archive/Anaconda2-4.4.0-Linux-x86_64.sh \
  #	&& bash Anaconda2-4.4.0-Linux-x86_64.sh -b -p /usr/local/conda/anaconda2
  
  RUN wget https://repo.continuum.io/archive/Anaconda3-4.4.0-Linux-x86_64.sh \
  	&& bash Anaconda3-4.4.0-Linux-x86_64.sh -b -p /usr/local/conda/anaconda3
  
  ENV PATH $PATH:/usr/local/conda/anaconda3/bin
  
  #RUN ln -s /usr/local/conda/anaconda2/bin/pip /usr/local/bin/pip2 \
  #    && ln -s /usr/local/conda/anaconda3/bin/pip /usr/local/bin/pip3
  
  # Install py2 and py3 envs, and registers jupyterhub kernels
  # https://github.com/jupyter/jupyter/issues/71
  
  # install everything (except JupyterHub itself) with Python 2 and 3. Jupyter is included in Anaconda.
  RUN conda create -n py3 python=3 anaconda \
  	&& conda create -n py2 python=2 anaconda
  
  # register py2 kernel
  RUN source activate py2 && ipython kernel install
  
  # same for py3, and install juptyerhub in the py3 env
  # && pip install jupyterhub
  RUN source activate py3 && ipython kernel install
  
  RUN conda install -c conda-forge jupyterhub
  
  # https://anaconda.org/conda-forge/jupyterhub -> instala node 6.2 e configurable-http-proxy
  #RUN /usr/local/conda/anaconda3/bin/conda install -c conda-forge jupyterhub
  #RUN conda install -c conda-forge jupyterhub \
  #	&& ln -s /usr/local/conda/anaconda3/bin/jupyterhub /usr/local/bin/jupyterhub
  
  # ipywidgets: https://github.com/ipython/ipywidgets
  #RUN pip3 install ipywidgets \
  #	&& pip2 install ipywidgets \
  #	&& jupyter nbextension enable --py --sys-prefix widgetsnbextension
  
  # Support for other languages
  # https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
  
  # TeX
  RUN yum -y install perl-Tk perl-Digest-MD5 && yum clean all
  