Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions add-jupyterhub-button.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,24 @@ const plugin = {
}

// Create JupyterHub URL
const gitpull_next = "/hub/user-redirect/git-pull?repo=https://github.com/EOPF-Sample-Service/eopf-sample-notebooks&branch=main&urlpath=lab/tree/eopf-sample-notebooks/notebooks/" + notebookPath
const gitpull_next =
"/hub/user-redirect/git-pull?repo=https://github.com/EOPF-Sample-Service/eopf-sample-notebooks&branch=main&urlpath=lab/tree/eopf-sample-notebooks/notebooks/" +
notebookPath;
const encoded = encodeURIComponent(gitpull_next);
const spawn_next = "/hub/spawn?next=" + encoded
const auto_start_extra = "%23fancy-forms-config%3D%7B%22default_url%22%3A%22lab%22%2C%22default_url%3Aunlisted_choice%22%3A%22%22%2C%22image%22%3A%22base%22%2C%22image%3Aunlisted_choice%22%3A%22%22%2C%20%22autoStart%22%3A%22true%22%7D"
const jupyterHubUrl = "https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" + encodeURIComponent(spawn_next) + auto_start_extra
const spawn_next = "/hub/spawn?next=" + encoded;
var jupyterHubUrl = "";
// All the notebooks including GDAL in their name will use a different image containing the GDAL EOPF ZARR DRIVER
if (notebookPath.includes("GDAL")) {
jupyterHubUrl =
"https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" +
encodeURIComponent(spawn_next) +
"%23fancy-forms-config=%7B%22profile%22%3A%22choose-your-environment%22%2C%22image%22%3A%22unlisted_choice%22%2C%22image%3Aunlisted_choice%22%3A%22clausmichele%2Feopf-zarr-driver%3Alatest%22%2C%20%22autoStart%22%3A%22true%22%7D";
} else {
jupyterHubUrl =
"https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" +
encodeURIComponent(spawn_next) +
"%23fancy-forms-config%3D%7B%22default_url%22%3A%22lab%22%2C%22default_url%3Aunlisted_choice%22%3A%22%22%2C%22image%22%3A%22base%22%2C%22image%3Aunlisted_choice%22%3A%22%22%2C%20%22autoStart%22%3A%22true%22%7D";
}

// Get style options
const isLarge = data.options?.style === "large";
Expand Down
3 changes: 2 additions & 1 deletion myst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ project:
- file: notebooks/Sentinel-3/Sentinel-3_Heatwave_Mapping.ipynb
- file: notebooks/xarray_eopf_plugin/xarray_eopf_sen2.ipynb
- file: notebooks/xarray_eopf_plugin/xarray_eopf_sen3.ipynb
- file: notebooks/xcube_eopf_plugin/introduction_xcube_eopf_plugin.ipynb
- file: notebooks/xcube_eopf_plugin/xcube_eopf_sen2.ipynb
- file: notebooks/xcube_eopf_plugin/xcube_eopf_sen3.ipynb
- file: notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb
- file: notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb
- file: notebooks/Sentinel-1/Sentinel-1_L2_OCN_Zarr_product_exploration.ipynb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"metadata": {},
"outputs": [],
"source": [
"remote_product_path = f\"https://objects.eodc.eu/e05ab01a9d56408d82ac32d69a5aae2a:notebook-data/tutorial_data/cpm_v260/S1A_IW_GRDH_1SDV_20250408T164909_20250408T164934_058668_0743A7_D5AC.zarr\""
"remote_product_path = \"https://objects.eodc.eu/e05ab01a9d56408d82ac32d69a5aae2a:notebook-data/tutorial_data/cpm_v260/S1A_IW_GRDH_1SDV_20250408T164909_20250408T164934_058668_0743A7_D5AC.zarr\""
]
},
{
Expand Down
11,259 changes: 5,609 additions & 5,650 deletions notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions notebooks/Sentinel-2/cc_snow_exercise_3.1.ipynb

Large diffs are not rendered by default.

Loading
Loading