diff --git a/notebooks/cfc-ocean.ipynb b/notebooks/cfc-ocean.ipynb index 653eb60..0ebbf1e 100644 --- a/notebooks/cfc-ocean.ipynb +++ b/notebooks/cfc-ocean.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "![Caribbeans for Climate]('/home/jovyan/CFC-cookoff2024/CFC-extreme-weather-cookbook/CFC_logo.PNG')" + "\n", + "![](../CFC_logo.PNG \"black background with Caribbeans for Climate in green writing\")\n", + "![](./images/logos/cmip_logo.jpeg \"image alt text\")" ] }, { @@ -216,6 +218,36 @@ "To initiate your ```Client```, navigate to the ```Dask```![](dask_icon_v2.ico \"Dask logo\") tab in the far-left sidebar and click on the `+New` button in the lower left of the sidebar window (you can `Scale` to 8 workers to make the computation faster). Once the cluster is active, a `<>` button will appear left of the `Scale` button . Click on it and it will paste a cell with the Client code (like the one below) - run that and delete this old cell. Click on the `Launch dashboard in JupyterLab` button and the Task Stream, Workers Memory and Progress windows will open. In order to get them to render you have to replace `tcp://127.0.0.1:` with `proxy` in the searchbar at the top of the sidebar window" ] }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/tmp/ipykernel_13513/595459257.py:3: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)\n", + " from tqdm.autonotebook import tqdm\n" + ] + } + ], + "source": [ + "import os\n", + "import sys\n", + "from tqdm.autonotebook import tqdm\n", + "from dask_gateway import Gateway\n", + "from dask.distributed import Client\n", + "\n", + "\n", + "platform = sys.platform\n", + "\n", + "if (platform == 'win32'):\n", + " import multiprocessing.popen_spawn_win32\n", + "else:\n", + " import multiprocessing.popen_spawn_posix" + ] + }, { "cell_type": "code", "execution_count": 40,