{ "cells": [ { "cell_type": "markdown", "id": "2d7656f8-f188-4b96-8d47-c4225ae0e96a", "metadata": {}, "source": [ "# Dask clusters\n", "\n", "This page describes how to create, scale, use and shut down Dask clusters.\n", "\n", "For an example of using Dask clusters to analyse data from Ag3, see the video below.\n", "\n", "" ] }, { "cell_type": "markdown", "id": "f32d775d-fba3-46ff-bb98-af76d2782e83", "metadata": {}, "source": [ "## Accessing the gateway\n", "\n", "@@TODO explain" ] }, { "cell_type": "code", "execution_count": 1, "id": "d4473b8d-0ccf-4355-a443-7f6d120832a1", "metadata": {}, "outputs": [], "source": [ "from dask_gateway import Gateway\n", "gateway = Gateway()" ] }, { "cell_type": "markdown", "id": "95413fef-d79d-49be-9498-b9080ad69453", "metadata": {}, "source": [ "## Creating a cluster\n", "\n", "@@TODO explain, selecting environment, selecting profile" ] }, { "cell_type": "code", "execution_count": 2, "id": "4ac8a099-2c6f-4798-9363-fe030d5001cd", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'binder-v3.0.0'" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import os\n", "conda_environment = os.environ['CONDA_PREFIX'].split('/')[-1]\n", "conda_environment" ] }, { "cell_type": "code", "execution_count": 22, "id": "81c22b02-89d9-4802-8cc4-274b76a75334", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "7ad3fc077b1b4a99a52bfc472272fbbf", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='

Cluster Options

'), GridBox(children=(HTML(value=\"

GatewayCluster'), HBox(children=(HTML(value='\\n

\\n