Skip to content

Commit

Permalink
added cell above client
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicetbailey committed Jun 14, 2024
1 parent b322b90 commit 9d0c637
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion notebooks/cfc-ocean.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![Caribbeans for Climate]('/home/jovyan/CFC-cookoff2024/CFC-extreme-weather-cookbook/CFC_logo.PNG')"
"\n",
"![<Caribbeans for Climate>](../CFC_logo.PNG \"black background with Caribbeans for Climate in green writing\")\n",
"![<CMIP6>](./images/logos/cmip_logo.jpeg \"image alt text\")"
]
},
{
Expand Down Expand Up @@ -216,6 +218,36 @@
"To initiate your ```Client```, navigate to the ```Dask```![<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,
Expand Down

0 comments on commit 9d0c637

Please sign in to comment.