Skip to content

Commit

Permalink
create a separate conda env for esmvaltool
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Fouilloux committed Nov 27, 2019
1 parent 995df8f commit 8ed9823
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
22 changes: 13 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ RUN apt-get update && apt-get install -y vim
# Install requirements for Python 3
ADD jupyterhub_environment.yml jupyterhub_environment.yml

RUN conda env update -f jupyterhub_environment.yml
RUN conda env create -f jupyterhub_environment.yml

RUN /opt/conda/bin/jupyter labextension install @jupyterlab/hub-extension @jupyter-widgets/jupyterlab-manager
RUN /opt/conda/bin/nbdime extensions --enable
RUN /opt/conda/bin/jupyter labextension install jupyterlab-datawidgets nbdime-jupyterlab dask-labextension
RUN /opt/conda/bin/jupyter labextension install @jupyter-widgets/jupyterlab-sidecar
RUN /opt/conda/bin/jupyter serverextension enable jupytext
RUN /opt/conda/bin/jupyter nbextension install --py jupytext
RUN /opt/conda/bin/jupyter nbextension enable --py jupytext
RUN /opt/conda/bin/jupyter labextension install @pyviz/jupyterlab_pyviz jupyter-leaflet
RUN source activate esmvaltool && \
/opt/conda/bin/ipython kernel install --user --name esmvaltool && \
/opt/conda/bin/python -m ipykernel install --user --name=esmvaltool && \
/opt/conda/bin/jupyter labextension install @jupyterlab/hub-extension \
@jupyter-widgets/jupyterlab-manager && \
/opt/conda/bin/jupyter labextension install jupyterlab-datawidgets && \
/opt/conda/bin/jupyter labextension install @jupyter-widgets/jupyterlab-sidecar && \
/opt/conda/bin/jupyter labextension install @pyviz/jupyterlab_pyviz \
jupyter-leaflet

# Fix hub failure
RUN fix-permissions $HOME

# Install other packages
USER notebook
27 changes: 11 additions & 16 deletions jupyterhub_environment.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: base
name: esmvaltool

channels:
- esmvalgroup
- esmvalgroup
- conda-forge
- bioconda
- defaults

dependencies:
- numpy
- xarray
- pandas
- cartopy
- matplotlib
- seaborn
- cartopy
- matplotlib
- seaborn
- basemap
- geopy
- geopy
- netcdf4
- cis
- metpy
Expand All @@ -29,21 +28,17 @@ dependencies:
- pillow
- branca
- geopandas
- psyplot
- psy-maps
- psyplot-gui
- psy-reg
- cdsapi
- folium
- cdsapi
- folium
- esmvaltool
- basemap-data-hires
- rasterstats
- cfgrib
- cdo
- nco
- jupytext
- rise
- papermill
- esmvaltool
- jupytext
- pip
- pip:
- dask_labextension
- ipydatawidgets
Expand Down

0 comments on commit 8ed9823

Please sign in to comment.