dask / dask-tutorial

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

Check dask-labextension is available #222

Closed GenevieveBuckley closed 2 years ago

GenevieveBuckley commented 2 years ago

What happened: I created a tutorial environment using the conda instructions in the README. It said everything had installed correctly into my conda environment, including the dask labextension. But when I started jupyter lab, the dask labextension was not available in the left hand sidebar.

What you expected to happen: I expected the dask labextension to be available to me when I started running jupyter lab.

Minimal Complete Verifiable Example:

git clone http://github.com/dask/dask-tutorial
cd dask-tutorial

conda env create -f binder/environment.yml
conda activate dask-tutorial
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @bokeh/jupyter_bokeh

jupyter lab

The jupyter lab extension icon is not visible to me in the left hand sidebar.

Anything else we need to know?: Reinstalling the dask-labextension with pip fixed the problem.

conda uninstall --force dask-labextension
python -m pip install dask-labextension

Environment:

jrbourbeau commented 2 years ago

Thanks for surfacing this @GenevieveBuckley -- apologies for the delayed reply. It looks like the README is missing this extra installation step

https://github.com/dask/dask-tutorial/blob/d9193da048b97c81778f6dbf3c1f4f8cf963f7c2/binder/postBuild#L4

FWIW once we migrate to JupyterLab 3, all those extra jupyter labextension install ... commands won't be needed anymore (xref https://github.com/dask/dask-tutorial/pull/207)