dask / dask-tutorial

Dask tutorial
https://tutorial.dask.org
BSD 3-Clause "New" or "Revised" License
1.83k stars 702 forks source link

Struggling to generate the dask.distributed.Client().cluster widget #169

Closed tomslade1 closed 4 years ago

tomslade1 commented 4 years ago

Hi guys,

I've got here from your SciPy'19 tutorial video; and am using the dask-scipy conda env. (A big thanks for all the documentation, it's incredibly intuitive!)

I'm trying to load up the Client().cluster object that enables dynamic toggling of the cores & workers in the cluster:

from dask.distributed import Client
client = Client()
client.cluster

But instead of getting: image

it returns the following:

'VBox(children=(HTML(value='<h2>LocalCluster</h2>'), HBox(children=(HTML(value='\n<div>\n <style scoped>\n …'

which looks like it's just not being rendered by an appropriate package.

Initial thinking was this might be because Bokeh/ipywidgets wasn't installed; but I separately installed both packages using conda and am still having no luck.

My current conda env is below: github.txt

Any advice would be super appreciated!

TomAugspurger commented 4 years ago

Are you in jupyterlab? You may need to install the extension: https://ipywidgets.readthedocs.io/en/stable/user_install.html#installing-the-jupyterlab-extension

On Fri, Mar 20, 2020 at 8:43 AM Tom Slade notifications@github.com wrote:

Hi guys,

I've got here from your SciPy'19 tutorial video; and am using the dask-scipy conda env. (A big thanks for all the documentation, it's incredibly intuitive!)

I'm trying to load up the Client().cluster object that enables dynamic toggling of the cores & workers in the cluster:

from dask.distributed import Client

client = Client()

client.cluster

But instead of getting: [image: image] https://user-images.githubusercontent.com/51721274/77167841-af87fc80-6aae-11ea-9088-81672e81cd96.png

it returns the following:

'VBox(children=(HTML(value='

LocalCluster

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