Skip to content
Permalink
Browse files

o13 tested notebooks add

  • Loading branch information...
Brian M Hamlin
Brian M Hamlin committed Aug 6, 2019
1 parent 91f338f commit 583fd362f44e3acbe781d003635683ca0554f2d2
Showing with 15 additions and 4 deletions.
  1. +15 −4 bin/install_jupyter.sh
@@ -99,18 +99,21 @@ cp "$BUILD_DIR"/../app-data/jupyter/jupyter_start.sh \
/usr/local/bin/
chmod a+x /usr/local/bin/jupyter_start.sh

# TODO: Test if these notebooks work fine
# TODO: Test if these notebooks work fine
# mkdir -p "$USER_HOME/jupyter"
# git clone https://github.com/OSGeo/OSGeoLive-Notebooks.git \
# "$USER_HOME/jupyter/notebooks"
# chown -R "$USER_NAME:$USER_NAME" "$USER_HOME/jupyter"

cd "$BUILD_DIR"

mkdir -p "$USER_HOME/jupyter/notebook_gallery/SciTools"
cp "$BUILD_DIR"/../app-data/jupyter/cartopy_simple.ipynb \
"$USER_HOME/jupyter/notebook_gallery/SciTools/"
##-- o13 rm cartopy_simple ---------------------------------------
#mkdir -p "$USER_HOME/jupyter/notebook_gallery/SciTools"
#cp "$BUILD_DIR"/../app-data/jupyter/cartopy_simple.ipynb \
# "$USER_HOME/jupyter/notebook_gallery/SciTools/"
##----------------------------------------------------------------

##-- o13 R notebook sample ---------------------------------------
mkdir -p "$USER_HOME/jupyter/notebook_gallery/R"
cp "$BUILD_DIR"/../app-data/jupyter/R_spatial_introduction.ipynb \
"$USER_HOME/jupyter/notebook_gallery/R/"
@@ -123,6 +126,14 @@ cp "$BUILD_DIR"/../app-data/jupyter/R_Notebooks_splash/sf_logo.gif \
cp "$BUILD_DIR"/../app-data/jupyter/R_Notebooks_splash/RConsortium.png \
"$USER_HOME/jupyter/notebook_gallery/R/"

##-- o13 copy tested content -dbb
cd ${USER_HOME}/jupyter
git clone https://git.osgeo.org/gitea/osgeolive/o13-Jupyter.git; cd o13-Jupyter
BRS="Rasterio_py3 Geopandas_py3 Folium_py3 Pandas_py3 Fiona_py2 Rasdaman_py2 Cartopy_py2 Mapserver_py ipy55 Shapely_py2 Iris_py2"
for br in ${BRS}; do git checkout $br; cp -R notebooks/* ../notebook_gallery/;done
cd ${USER_HOME}/jupyter; rm -rf o13-Jupyter
cd ${USER_HOME}

##--------------------------------------------
cp -r /home/user/jupyter /etc/skel

0 comments on commit 583fd36

Please sign in to comment.
You can’t perform that action at this time.