Skip to content

Commit bfb5aa6

Browse files
authored
fix path in notebook when running locally (#247)
1 parent a773f30 commit bfb5aa6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ micromamba install -n pyworkshop -c conda-forge gdal notebook
102102
cd workshop/jupyter
103103
# install python workshop requirements
104104
pip3 install -r requirements.txt
105+
cd content/notebooks
105106
# Run the notebook, copy url (with token) to browser if browser does not open automatically
106107
jupyter notebook
107108
```

web/docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ micromamba install -n pyworkshop -c conda-forge gdal notebook
204204
cd workshop/jupyter
205205
# install python workshop requirements
206206
pip3 install -r requirements.txt
207+
cd content/notebooks
207208
# Run the notebook, copy URL (with token) to browser if browser does not open automatically
208209
jupyter notebook
209210
```

workshop/jupyter/content/notebooks/05-raster-data.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"outputs": [],
8383
"source": [
8484
"# Resample\n",
85-
"gdal.Warp('../data/output_4326_cog.tif','../data/world.rgb.tif',dstSRS='EPSG:4326',format='COG')\n"
85+
"gdal.Warp('output_4326_cog.tif','../data/world.rgb.tif',dstSRS='EPSG:4326',format='COG')\n"
8686

8787
]
8888
},
@@ -114,9 +114,9 @@
114114
" target: 'map',\n",
115115
" layers: [\n",
116116
" new ol.layer.Tile({source: new ol.source.OSM()}),\n",
117-
" new ol.layer.WebGLTile({source: new ol.source.GeoTIFF({sources: [{url: '/files/content/data/output_4326_cog.tif'}]}),opacity: 0.8})\n",
117+
" new ol.layer.WebGLTile({source: new ol.source.GeoTIFF({sources: [{url: '/files/output_4326_cog.tif'}]}),opacity: 0.8})\n",
118118
" ],\n",
119-
" view: new ol.View({center: ol.proj.fromLonLat([18, 45]), zoom: 6})\n",
119+
" view: new ol.View({center: ol.proj.fromLonLat([22, 43]), zoom: 5})\n",
120120
"})};\n",
121121
"</script>\n",
122122
"''')\n",

0 commit comments

Comments
 (0)