-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install dependencies via pip instead of conda (#27)
- Loading branch information
Showing
7 changed files
with
76 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# OGGM-edu | ||
|
||
Educational material about glaciers, powered by [OGGM](https://oggm.org) and [Binder](https://mybinder.org/) | ||
Educational material about glaciers, powered by [OGGM](https://oggm.org) and [Binder](https://mybinder.org/). | ||
|
||
Web: http://edu.oggm.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
build-essential | ||
python-pip | ||
liblapack-dev | ||
gfortran | ||
libproj-dev | ||
python-setuptools | ||
tk-dev | ||
python3-tk | ||
python3-dev | ||
gdal-bin | ||
libgdal-dev | ||
python-gdal | ||
netcdf-bin | ||
ncview | ||
python-netcdf4 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/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 geopandas | ||
pip install rasterio | ||
pip install pyviz_comms | ||
pip install bokeh | ||
pip install param | ||
pip install holoviews | ||
pip install pyct | ||
pip install panel | ||
pip install parambokeh | ||
pip install datashader | ||
pip install descartes | ||
pip install salem | ||
pip install git+https://github.com/OGGM/oggm.git | ||
|
||
# Jupyterlab | ||
pip install ipympl | ||
jupyter labextension install @jupyter-widgets/jupyterlab-manager | ||
jupyter labextension install jupyter-matplotlib | ||
jupyter labextension install @pyviz/jupyterlab_holoviews | ||
|
||
# Add funny font | ||
mkdir ~/.fonts | ||
wget http://antiyawn.com/uploads/Humor-Sans-1.0.ttf | ||
mv Humor-Sans-1.0.ttf ~/.fonts/Humor-Sans-1.0.ttf | ||
cd ~/.fonts/ | ||
fc-cache -f -v | ||
|
||
# Back to home | ||
cd ~ | ||
|
||
# run matplotlib once to generate the font cache | ||
python -c "import matplotlib as mpl; mpl.use('Agg'); import pylab as plt; fig, ax = plt.subplots(); fig.savefig('test.png')" | ||
test -e test.png && rm test.png | ||
|
||
# Get the OGGM data | ||
python binder/download_cache.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
numpy | ||
scipy | ||
pandas | ||
shapely | ||
matplotlib | ||
Pillow | ||
netcdf4 | ||
scikit-image | ||
configobj | ||
joblib | ||
xarray | ||
boto3 | ||
progressbar2 | ||
pytest | ||
motionless | ||
dask | ||
bottleneck | ||
ipython |
This file was deleted.
Oops, something went wrong.