From b74e583820cf97bec6e1602ea791722e0b2c7c90 Mon Sep 17 00:00:00 2001 From: Jan Gieseler Date: Fri, 26 Jun 2026 14:34:13 +0300 Subject: [PATCH 1/2] Add script to download example data files for SOLER workshop #3 --- JupyterHub_Help.ipynb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/JupyterHub_Help.ipynb b/JupyterHub_Help.ipynb index d2e62be..d392de4 100644 --- a/JupyterHub_Help.ipynb +++ b/JupyterHub_Help.ipynb @@ -391,6 +391,40 @@ "source": [ "Or, as a last ressort, remove the entire user site-packages directory by running `!rm -rf /home/jovyan/.local/lib/python3.*/site-packages/*` as a code cell (⚠️ be careful, there is no undo — deleted files are gone permanently)." ] + }, + { + "cell_type": "markdown", + "id": "11dea63e", + "metadata": {}, + "source": [ + "### Workshop #3\n", + "\n", + "The following is a little script that will download example data files used in the SOLER workshop #3 to your JupyterHub. It will be used in case some of the data servers have connection problems." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "cc321303", + "metadata": {}, + "outputs": [], + "source": [ + "import urllib.request\n", + "import zipfile\n", + "import io\n", + "import shutil\n", + "\n", + "url = \"https://github.com/jgieseler/workshop3_data/archive/refs/heads/main.zip\"\n", + "data_folder = \"/home/jovyan/data\"\n", + "\n", + "with urllib.request.urlopen(url) as response:\n", + " with zipfile.ZipFile(io.BytesIO(response.read())) as z:\n", + " z.extractall(data_folder)\n", + "\n", + "# GitHub adds a \"workshop3_data-main/\" subfolder, move contents up\n", + "shutil.copytree(f\"{data_folder}/workshop3_data-main/\", data_folder, dirs_exist_ok=True)\n", + "shutil.rmtree(f\"{data_folder}/workshop3_data-main/\")" + ] } ], "metadata": { From 0c279894d8cb24c8f8e1d67d112dcbe56cd619dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:42:37 +0000 Subject: [PATCH 2/2] [skip actions][pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- JupyterHub_Help.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JupyterHub_Help.ipynb b/JupyterHub_Help.ipynb index d392de4..1e06db1 100644 --- a/JupyterHub_Help.ipynb +++ b/JupyterHub_Help.ipynb @@ -394,7 +394,7 @@ }, { "cell_type": "markdown", - "id": "11dea63e", + "id": "29", "metadata": {}, "source": [ "### Workshop #3\n", @@ -405,7 +405,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cc321303", + "id": "30", "metadata": {}, "outputs": [], "source": [