{ "cells": [ { "cell_type": "markdown", "id": "opposed-recycling", "metadata": {}, "source": [ "# Dask-jobqueue in Action" ] }, { "cell_type": "code", "execution_count": 1, "id": "similar-writer", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from dask_jobqueue import PBSCluster\n", "\n", "import dask\n", "\n", "dask.config.set(\n", " {\n", " 'distributed.dashboard.link': 'https://jupyterhub.hpc.ucar.edu/stable/user/{USER}/dav-compute/proxy/{port}/status'\n", " }\n", ")" ] }, { "cell_type": "markdown", "id": "assisted-vocabulary", "metadata": {}, "source": [ "## Instatiate a cluster object" ] }, { "cell_type": "code", "execution_count": 2, "id": "unavailable-comment", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8e4fb40b26b54a1ca44ee3366f472f33", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='

PBSCluster

'), HBox(children=(HTML(value='\\n
\\n \n \n \n \n \n
Workers 2
Cores 2
Memory 18.62 GiB
\n
\n" } }, "a4b3396c04be47eab437678bed1b745e": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "IntTextModel", "state": { "description": "Maximum", "layout": "IPY_MODEL_97ad47d5572c439db2dd578af929e01b", "step": 1, "style": "IPY_MODEL_9ccffffe365642d0a4907bd95e954bb3", "value": 4 } }, "a506f402d9ca490fa13330f287c6f157": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ButtonStyleModel", "state": {} }, "ab96334b912f4dac9f2454311df4b9aa": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "state": { "layout": "IPY_MODEL_0565deab87d14cf4b2f15ee5e463e63d", "style": "IPY_MODEL_7b8a38b6910d46ce83ceb577f5f77718", "value": "

Dashboard: https://jupyterhub.hpc.ucar.edu/stable/user/abanihi/dav-compute/proxy/8787/status

\n" } }, "c79a59a89ac7437fbcea81217b22e3c9": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "description_width": "" } }, "d4ac4c834c3e47248d77dc9b980d6e79": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "ButtonStyleModel", "state": {} }, "d50931b9950d41268f58203bee552fc9": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "min_width": "150px" } }, "e1af4bddf7b24f679de43c3470e211ab": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": {} }, "e5ae9eb9bdb944d7bdf51d873982b3ca": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "AccordionModel", "state": { "_titles": { "0": "Manual Scaling", "1": "Adaptive Scaling" }, "children": [ "IPY_MODEL_02cae7acb2234a5280667860807ab9ed", "IPY_MODEL_02e45b1ddd064408a1928991815f76ea" ], "layout": "IPY_MODEL_88fa9d1682474b5f99b80e0a081def02", "selected_index": 1 } }, "fb941851b9774d3aa4082581b0f171f2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": {} } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }