From 7bad00ad9cb6ebb04aaab7010a048278543321f8 Mon Sep 17 00:00:00 2001 From: Fabien Maussion Date: Thu, 20 Jun 2019 18:17:18 +0200 Subject: [PATCH] Try full conda --- binder/environment.yml | 52 +++++++++++++++++++++++++++++++++++++++++ binder/postBuild | 31 ++---------------------- binder/requirements.txt | 20 ---------------- 3 files changed, 54 insertions(+), 49 deletions(-) create mode 100644 binder/environment.yml delete mode 100644 binder/requirements.txt diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 0000000..6fbb8db --- /dev/null +++ b/binder/environment.yml @@ -0,0 +1,52 @@ +name: oggm +channels: + - conda-forge +dependencies: + - python=3.6 + - jupyter + - jupyterlab + - jupyterhub + - bokeh + - nbserverproxy + - ipywidgets + - graphviz + - numpy + - scipy + - pandas + - shapely + - matplotlib + - Pillow + - netcdf4 + - scikit-image + - scikit-learn + - configobj + - xarray + - pytest + - dask + - bottleneck + - pyproj + - cartopy + - geopandas + - rasterio + - pyviz_comms + - bokeh + - param + - holoviews + - hvplot + - geoviews + - panel + - parambokeh + - datashader + - descartes + - seaborn + - ipympl + - pip + - pip: + - joblib + - progressbar2 + - motionless + - nbgitpuller + - git+https://github.com/fmaussion/salem.git + - git+https://github.com/OGGM/oggm.git + - git+https://github.com/OGGM/oggm-edu.git + - git+https://github.com/retostauffer/python-colorspace diff --git a/binder/postBuild b/binder/postBuild index 7e21b74..ab4d197 100644 --- a/binder/postBuild +++ b/binder/postBuild @@ -1,42 +1,15 @@ #!/bin/bash -# Add packages -pip install gdal=="$(gdal-config --version)" --install-option="build_ext" --install-option="$(gdal-config --cflags | sed 's/-I/--include-dirs=/')" -pip install fiona --install-option="build_ext" --install-option="$(gdal-config --cflags | sed 's/-I/--include-dirs=/')" -pip install pyproj -pip install cython -pip install cartopy -pip install geopandas -pip install rasterio -pip install pyviz_comms -pip install bokeh -pip install param -pip install holoviews -pip install hvplot -pip install geoviews -pip install pyct -pip install panel -pip install parambokeh -pip install datashader -pip install descartes -pip install seaborn -pip install git+https://github.com/fmaussion/salem.git -pip install git+https://github.com/OGGM/oggm.git -pip install git+https://github.com/OGGM/oggm-edu.git -pip install git+https://github.com/retostauffer/python-colorspace +# serverextensions +jupyter serverextension enable --sys-prefix --py nbserverproxy # Jupyterlab -pip install jupyterlab==0.35.4 -pip install ipympl jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter labextension install jupyter-matplotlib jupyter labextension install jupyterlab_bokeh jupyter labextension install @pyviz/jupyterlab_pyviz jupyter serverextension enable --py nbgitpuller --sys-prefix -# Jupyter Hub - for cluster -pip install jupyterhub==0.9.6 - # Add funny font mkdir ~/.fonts wget http://antiyawn.com/uploads/Humor-Sans-1.0.ttf diff --git a/binder/requirements.txt b/binder/requirements.txt deleted file mode 100644 index b248ac0..0000000 --- a/binder/requirements.txt +++ /dev/null @@ -1,20 +0,0 @@ -numpy -scipy -pandas -shapely -matplotlib -Pillow -netcdf4 -scikit-image -scikit-learn -configobj -joblib -xarray -boto3 -progressbar2 -pytest -motionless -dask -bottleneck -ipython -nbgitpuller