From 8d747cd907370b47c7fd998524de0f45615ea61e Mon Sep 17 00:00:00 2001 From: stonebig Date: Sun, 20 Dec 2020 18:59:18 +0100 Subject: [PATCH] better explanations in dask-jupyterlab demo --- docs/dask_jupyterlab_extension_demo.ipynb | 53 +++++++++++++++++------ 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/docs/dask_jupyterlab_extension_demo.ipynb b/docs/dask_jupyterlab_extension_demo.ipynb index 1befe51..7b770d0 100644 --- a/docs/dask_jupyterlab_extension_demo.ipynb +++ b/docs/dask_jupyterlab_extension_demo.ipynb @@ -1,13 +1,27 @@ { "cells": [ { - "cell_type": "code", - "execution_count": null, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ "## basic Dask_jupyerlab extension demo\n", - "see https://www.youtube.com/watch?feature=player_embedded&v=EX_voquHdk0" + "see https://www.youtube.com/watch?feature=player_embedded&v=EX_voquHdk0\n", + "\n", + "If not working, see the how-to: https://github.com/dask/dask-labextension\n", + "\n", + "You may have, if not working, to re-run;\n", + "\n", + "
jupyter serverextension enable dask_labextension
\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Step 1: launch a Client\n", + "\n", + "- warning; Dask-Jupyterlab doesn't work for Python-3.9.1, even with Distributed-2020.12.0\n", + "- check here for progress on the issue: https://github.com/dask/distributed/issues/4168)" ] }, { @@ -23,7 +37,7 @@ "\n", "

Client

\n", "\n", "\n", @@ -39,7 +53,7 @@ "" ], "text/plain": [ - "" + "" ] }, "execution_count": 1, @@ -53,9 +67,22 @@ "client" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## step2 \n", + "- click on the DASK Extension (the red pictures) on the left left pannel\n", + "- copy the Dashoard url (in blue in the cell above this one) in the DASK DASHBOARD URL ot the Dask Extension panel that appears\n", + "- click on the refresh circualr arrow on the left of the bottom CLUSTERS line of the Dask Extension panel\n", + "- .... this make the buttons of the DASK extension to go from GREY to ORANGE\n", + "- .....clicking on each of them open a dedicated pan with related information: for example \"GRAPH\"\n", + "- ..... with jupyterlan you can show it side-to-side with current notebook by moving tabs\n" + ] + }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -118,7 +145,7 @@ " \n", "\n", " \n", - " \n", + " \n", "\n", " \n", " 20000\n", @@ -132,7 +159,7 @@ "dask.array" ] }, - "execution_count": 4, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -146,16 +173,16 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "199998586.85963023" + "199999688.8147819" ] }, - "execution_count": 6, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -189,7 +216,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.5" + "version": "3.8.7rc1" } }, "nbformat": 4,