At the beginning of the notebook
To utilise the Dask server established from the PBS job, it is necessary to add and run the following cell at the beginning of your notebook:
The output will show the configuration of the client and Dask cluster. You can check that the number of cores matches what you requested in the job script.
In order to adaptively manage your compute resources, it is possible to submit PBS jobs to set up a Dask cluster as needed inside of your notebooks. This scales up your program and you can submit as many jobs as required in your workflow:
At the end of the jobscript
Add and run the cell below to gracefully stop your job: