dask / dask-labextension

JupyterLab extension for Dask
BSD 3-Clause "New" or "Revised" License
311 stars 62 forks source link

Buttons Unresponsive #61

Open quasiben opened 5 years ago

quasiben commented 5 years ago

I recently had to rebuild my lab conda environment and the dask-labextension buttons (though not all) seem to be unresponsive.

# Name                    Version                   Build  Channel
jupyterlab                0.35.5           py37hf63ae98_0
jupyterlab_server         0.2.0                    py37_0

I heard from @mrocklin that there may be tornado issues and I tested with both tornado 5 and 6

ian-r-rose commented 5 years ago

Thanks for the report @quasiben. Can you confirm that it was working before?

A few things to check: What versions of dask-labextension (npm) and dask_labextension (python) are you using? Is the python extension enabled? (jupyter serverextension list) Are there any errors in the notebook server logs? Are there any errors in the browser Javascript console?

quasiben commented 5 years ago

Apologies, was just about to include all of those:

(lab) bzaitlen@dgx16:~$ conda list dask-labextension
# packages in environment at /home/nfs/bzaitlen/miniconda3/envs/lab:
#
# Name                    Version                   Build  Channel
dask-labextension         0.3.3                    pypi_0    pypi

(lab) bzaitlen@dgx16:~$ jupyter serverextension list
config dir: /home/nfs/bzaitlen/miniconda3/envs/lab/etc/jupyter
    dask_labextension  enabled
    - Validating...
      dask_labextension 0.3.3 OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 0.35.5 OK

Nothing shows up with

npm list -g | grep dask

Perhaps the above is the problem ?

There are no reported errors in the js console nor the server logs. Things were working in the past -- though I can't recall which jupyter-lab version I was using

mrocklin commented 5 years ago

Unresponsive buttons might also be due to a lack of a connection? Are they gray or orange? If gray then this might be a network issue.

quasiben commented 5 years ago

The buttons are orange. And most buttons don't work. Oddly, the Workers and Task Graph buttons work

ian-r-rose commented 5 years ago

@quasiben Hmm, those versions look reasonable. Is it possible that your version of distributed is broken? Can you go to the individual dashboard urls in a separate browser tab, rather than the JupyterLab tabs? What do you see at {DASHBOARD_URL}/individual-plots.json?

quasiben commented 5 years ago

The dashboard is functional and the json output is:

{"Individual Task Stream": "/individual-task-stream", "Individual Progress": "/individual-progress", "Individual Graph": "/individual-graph", "Individual Profile": "/individual-profile", "Individual Profile Server": "/individual-profile-server", "Individual Nbytes": "/individual-nbytes", "Individual Nprocessing": "/individual-nprocessing", "Individual Workers": "/individual-workers"}
quasiben commented 5 years ago

I'm starting over with a new env

quasiben commented 5 years ago

I forgot to say thank you @ian-r-rose and @mrocklin for helping me debug. My apologies

ian-r-rose commented 5 years ago

Thanks for following up. Did you get it working? If so, any secrets you can share for future users who may run into the same issue?

quasiben commented 5 years ago

I didn't get it working -- i built a new env with the following:

conda create -n lab jupyterlab bokeh numpy matplotlib nodejs -c conda-forge
pip install dask_labextension
jupyter labextension install dask-labextension

Using the above the proxying didn't work at all. I think added jupyter-server-proxy which brought me back to buttons not being responsive:

pip install jupyter-server-proxy

The above was probably a mistake given https://github.com/dask/dask-labextension/issues/49

quasiben commented 5 years ago

I just notice I am using python3.7. Is this a problem ?

ian-r-rose commented 5 years ago

Using the above the proxying didn't work at all. I think added jupyter-server-proxy which brought me back to buttons not being responsive:

I'm confused -- what is the difference between with jupyter-server-proxy and without? Note that until #58 is published it should not be a dependency here.

quasiben commented 5 years ago

Sorry, with jupyter-server-proxy the Workers and Task Graph buttons are responsive and everything is orange. With jupyter-server-proxy proxying fails and all buttons are grey

ian-r-rose commented 5 years ago

Do you have any dask config that might be setting the dashboard link to something unintended?

quasiben commented 5 years ago

I don't think this should matter ?

(lab) bzaitlen@dgx16:~$ cat ~/.config/dask/labextension.yaml
labextension:
  factory:
    module: 'dask_cuda'
    class: 'LocalCUDACluster'
    args: []
    kwargs: {}

I also wanted to note that i am running jupyter-lab version 0.35.6

ian-r-rose commented 5 years ago

I agree it shouldn't matter but maybe try removing it anyways? I just tried your install setup on Ubuntu 18.04 and everything seemed to be working as expected.

quasiben commented 5 years ago

i removed it and I'm still getting the issue. Maybe my VPN is causing some issues...

quasiben commented 5 years ago
Full Conda Env ``` # packages in environment at /home/nfs/bzaitlen/miniconda3/envs/lab: # # Name Version Build Channel aiohttp 3.5.4 pypi_0 pypi async-timeout 3.0.1 pypi_0 pypi attrs 19.1.0 py_0 conda-forge backcall 0.1.0 py_0 conda-forge bleach 3.1.0 py_0 conda-forge bokeh 1.1.0 py37_0 conda-forge bzip2 1.0.6 h14c3975_1002 conda-forge ca-certificates 2019.1.23 0 certifi 2019.3.9 py37_0 chardet 3.0.4 pypi_0 pypi click 7.0 pypi_0 pypi cloudpickle 1.0.0 pypi_0 pypi cycler 0.10.0 py_1 conda-forge dask 1.2.2 pypi_0 pypi dask-labextension 0.3.3 pypi_0 pypi dbus 1.13.6 he372182_0 conda-forge decorator 4.4.0 py_0 conda-forge defusedxml 0.5.0 py_1 conda-forge distributed 1.28.1 pypi_0 pypi entrypoints 0.3 py37_1000 conda-forge expat 2.2.5 hf484d3e_1002 conda-forge fontconfig 2.13.1 he4413a7_1000 conda-forge freetype 2.10.0 he983fc9_0 conda-forge gettext 0.19.8.1 hc5be6a0_1002 conda-forge glib 2.58.3 hf63aee3_1001 conda-forge gst-plugins-base 1.14.4 hdf3bae2_1001 conda-forge gstreamer 1.14.4 h66beb1c_1001 conda-forge heapdict 1.0.0 pypi_0 pypi icu 58.2 hf484d3e_1000 conda-forge idna 2.8 pypi_0 pypi ipykernel 5.1.0 py37h24bf2e0_1002 conda-forge ipython 7.5.0 py37h24bf2e0_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge ipywidgets 7.4.2 py37_0 jedi 0.13.3 py37_0 conda-forge jinja2 2.10.1 py_0 conda-forge jpeg 9c h14c3975_1001 conda-forge jsonschema 3.0.1 py37_0 conda-forge jupyter_client 5.2.4 py_3 conda-forge jupyter_core 4.4.0 py_0 conda-forge jupyterlab 0.35.6 py37_0 conda-forge jupyterlab_server 0.2.0 py_0 conda-forge kiwisolver 1.1.0 py37hc9558a2_0 conda-forge libblas 3.8.0 9_openblas conda-forge libcblas 3.8.0 9_openblas conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 8.2.0 hdf63c60_1 libgfortran-ng 7.3.0 hdf63c60_0 libiconv 1.15 h516909a_1005 conda-forge liblapack 3.8.0 9_openblas conda-forge libpng 1.6.37 hed695b0_0 conda-forge libsodium 1.0.16 h14c3975_1001 conda-forge libstdcxx-ng 8.2.0 hdf63c60_1 libtiff 4.0.10 h648cc4a_1001 conda-forge libuuid 2.32.1 h14c3975_1000 conda-forge libxcb 1.13 h14c3975_1002 conda-forge libxml2 2.9.9 h13577e0_0 conda-forge markupsafe 1.1.1 py37h14c3975_0 conda-forge matplotlib 3.0.3 py37_1 conda-forge matplotlib-base 3.0.3 py37h5f35d83_1 conda-forge mistune 0.8.4 py37h14c3975_1000 conda-forge msgpack 0.6.1 pypi_0 pypi multidict 4.5.2 pypi_0 pypi nb_conda_kernels 2.2.1 py37_0 nbconvert 5.5.0 py_0 conda-forge nbformat 4.4.0 py_1 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge nodejs 10.13.0 he6710b0_0 notebook 5.7.8 py37_0 conda-forge numpy 1.16.3 py37he5ce36f_0 conda-forge olefile 0.46 py_0 conda-forge openblas 0.3.6 h6e990d7_2 conda-forge openssl 1.1.1b h7b6447c_1 packaging 19.0 py_0 conda-forge pandoc 2.7.2 0 conda-forge pandocfilters 1.4.2 py_1 conda-forge parso 0.4.0 py_0 conda-forge pcre 8.41 hf484d3e_1003 conda-forge pexpect 4.7.0 py37_0 conda-forge pickleshare 0.7.5 py37_1000 conda-forge pillow 6.0.0 py37he7afcd5_0 conda-forge pip 19.1 py37_0 conda-forge prometheus_client 0.6.0 py_0 conda-forge prompt_toolkit 2.0.9 py_0 conda-forge psutil 5.6.2 pypi_0 pypi pthread-stubs 0.4 h14c3975_1001 conda-forge ptyprocess 0.6.0 py_1001 conda-forge pygments 2.4.0 py_0 conda-forge pyparsing 2.4.0 py_0 conda-forge pyqt 5.9.2 py37hcca6a23_0 conda-forge pyrsistent 0.15.2 py37h516909a_0 conda-forge python 3.7.3 h5b0a415_0 conda-forge python-dateutil 2.8.0 py_0 conda-forge pyyaml 5.1 py37h14c3975_0 conda-forge pyzmq 18.0.1 py37hc4ba49a_1 conda-forge qt 5.9.7 h52cfd70_1 conda-forge readline 7.0 hf8c457e_1001 conda-forge send2trash 1.5.0 py_0 conda-forge setuptools 41.0.1 py37_0 conda-forge simpervisor 0.3 pypi_0 pypi sip 4.19.8 py37hf484d3e_1000 conda-forge six 1.12.0 py37_1000 conda-forge sortedcontainers 2.1.0 pypi_0 pypi sqlite 3.26.0 h67949de_1001 conda-forge tblib 1.4.0 pypi_0 pypi terminado 0.8.2 py37_0 conda-forge testpath 0.4.2 py_1001 conda-forge tk 8.6.9 h84994c4_1001 conda-forge toolz 0.9.0 pypi_0 pypi tornado 5.1.1 py37h7b6447c_0 traitlets 4.3.2 py37_1000 conda-forge wcwidth 0.1.7 py_1 conda-forge webencodings 0.5.1 py_1 conda-forge wheel 0.33.4 py37_0 conda-forge widgetsnbextension 3.4.2 py37_0 xorg-libxau 1.0.9 h14c3975_0 conda-forge xorg-libxdmcp 1.1.3 h516909a_0 conda-forge xz 5.2.4 h14c3975_1001 conda-forge yaml 0.1.7 h14c3975_1001 conda-forge yarl 1.3.0 pypi_0 pypi zeromq 4.3.1 hf484d3e_1000 conda-forge zict 0.1.4 pypi_0 pypi zlib 1.2.11 h14c3975_1004 conda-forge ```
ian-r-rose commented 5 years ago

I'm a bit at a loss. I think you will run into troubles if your config tries to launch a CUDA cluster when dask-cuda is not installed. But if that is not in the config, then the environment seems fine to me. What OS/browser are you using? Can you reproduce the issue in a binder environment?

ian-r-rose commented 5 years ago

Here is a branch that specifies a working environment, demonstrated on Binder: Binder

quasiben commented 5 years ago

I think this is a user error/my setup. @mrocklin recreated a new env last night and had no issues. The setup is jlab running on ubuntu + vpn + osx chrome browser. Another thing to note is that I'm using node 11 ?

Could it be that a lab-1.0 conda environment is polluting the JS space ?

quasiben commented 5 years ago

I am going to close again (sorry for reopening). I don't think it's worth wasting any more of your time @ian-r-rose . Thank you again for helping me debug

jakirkham commented 5 years ago

Do you recall which buttons weren't working @quasiben? May have run into a similar issue. In particular everything except for Progress and Task Stream work.

quasiben commented 5 years ago

Correct, only Progress and Task Stream were working

jakirkham commented 5 years ago

Do you recall what changed between your old environment and your new environment where the issue was fixed?

sephib commented 5 years ago

Hi, I'm having a similar problem.
The following buttons are not responsive:

  1. Graph
  2. Processing Tasks
  3. Progress
  4. Workers

I'm running on Windows10 with pipenv . see below pipenv graph :

dask-labextension==0.3.3

  • bokeh [required: Any, installed: 1.1.0]
    • Jinja2 [required: >=2.7, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
    • numpy [required: >=1.7.1, installed: 1.16.3]
    • packaging [required: >=16.8, installed: 19.0]
      • pyparsing [required: >=2.0.2, installed: 2.4.0]
      • six [required: Any, installed: 1.12.0]
    • pillow [required: >=4.0, installed: 6.0.0]
    • python-dateutil [required: >=2.1, installed: 2.8.0]
      • six [required: >=1.5, installed: 1.12.0]
    • PyYAML [required: >=3.10, installed: 5.1]
    • six [required: >=1.5.2, installed: 1.12.0]
    • tornado [required: >=4.3, installed: 6.0.2]
  • distributed [required: >=1.24.1, installed: 1.28.1]
    • click [required: >=6.6, installed: 7.0]
    • cloudpickle [required: >=0.2.2, installed: 1.1.1]
    • dask [required: >=0.18.0, installed: 1.2.2]
    • msgpack [required: Any, installed: 0.6.1]
    • psutil [required: >=5.0, installed: 5.6.2]
    • pyyaml [required: Any, installed: 5.1]
    • six [required: Any, installed: 1.12.0]
    • sortedcontainers [required: !=2.0.1,!=2.0.0, installed: 2.1.0]
    • tblib [required: Any, installed: 1.4.0]
    • toolz [required: >=0.7.4, installed: 0.9.0]
    • tornado [required: >=5, installed: 6.0.2]
    • zict [required: >=0.1.3, installed: 0.1.4]
      • heapdict [required: Any, installed: 1.0.0]
  • notebook [required: >=4.3.1, installed: 5.7.8]
    • ipykernel [required: Any, installed: 5.1.1]
      • ipython [required: >=5.0.0, installed: 7.5.0]
      • backcall [required: Any, installed: 0.1.0]
      • colorama [required: Any, installed: 0.4.1]
      • decorator [required: Any, installed: 4.4.0]
      • jedi [required: >=0.10, installed: 0.13.3]
        • parso [required: >=0.3.0, installed: 0.4.0]
      • pickleshare [required: Any, installed: 0.7.5]
      • prompt-toolkit [required: >=2.0.0,<2.1.0, installed: 2.0.9]
        • six [required: >=1.9.0, installed: 1.12.0]
        • wcwidth [required: Any, installed: 0.1.7]
      • pygments [required: Any, installed: 2.4.0]
      • setuptools [required: >=18.5, installed: 41.0.1]
      • traitlets [required: >=4.2, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • jupyter-client [required: Any, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
        • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • tornado [required: >=4.2, installed: 6.0.2]
      • traitlets [required: >=4.1.0, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • ipython-genutils [required: Any, installed: 0.2.0]
    • jinja2 [required: Any, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
    • jupyter-client [required: >=5.2.0, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
      • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • jupyter-core [required: >=4.4.0, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbconvert [required: Any, installed: 5.5.0]
      • bleach [required: Any, installed: 3.1.0]
      • six [required: >=1.9.0, installed: 1.12.0]
      • webencodings [required: Any, installed: 0.5.1]
      • defusedxml [required: Any, installed: 0.6.0]
      • entrypoints [required: >=0.2.2, installed: 0.3]
      • jinja2 [required: >=2.4, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • mistune [required: >=0.8.1, installed: 0.8.4]
      • nbformat [required: >=4.4, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
        • attrs [required: >=17.4.0, installed: 19.1.0]
        • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
        • setuptools [required: Any, installed: 41.0.1]
        • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • pandocfilters [required: >=1.4.1, installed: 1.4.2]
      • pygments [required: Any, installed: 2.4.0]
      • testpath [required: Any, installed: 0.4.2]
      • traitlets [required: >=4.2, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbformat [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
      • attrs [required: >=17.4.0, installed: 19.1.0]
      • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
      • setuptools [required: Any, installed: 41.0.1]
      • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • prometheus-client [required: Any, installed: 0.6.0]
    • pyzmq [required: >=17, installed: 18.0.1]
    • Send2Trash [required: Any, installed: 1.5.0]
    • terminado [required: >=0.8.1, installed: 0.8.2]
      • pywinpty [required: >=0.5, installed: 0.5.5]
      • tornado [required: >=4, installed: 6.0.2]
    • tornado [required: >=4.1,<7, installed: 6.0.2]
    • traitlets [required: >=4.2.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0] jupyterlab==0.35.6
  • jupyterlab-server [required: >=0.2.0,<0.3.0, installed: 0.2.0]
    • jsonschema [required: >=2.6.0, installed: 3.0.1]
      • attrs [required: >=17.4.0, installed: 19.1.0]
      • pyrsistent [required: >=0.14.0, installed: 0.15.2]
      • six [required: Any, installed: 1.12.0]
      • setuptools [required: Any, installed: 41.0.1]
      • six [required: >=1.11.0, installed: 1.12.0]
    • notebook [required: >=4.2.0, installed: 5.7.8]
      • ipykernel [required: Any, installed: 5.1.1]
      • ipython [required: >=5.0.0, installed: 7.5.0]
        • backcall [required: Any, installed: 0.1.0]
        • colorama [required: Any, installed: 0.4.1]
        • decorator [required: Any, installed: 4.4.0]
        • jedi [required: >=0.10, installed: 0.13.3]
        • parso [required: >=0.3.0, installed: 0.4.0]
        • pickleshare [required: Any, installed: 0.7.5]
        • prompt-toolkit [required: >=2.0.0,<2.1.0, installed: 2.0.9]
        • six [required: >=1.9.0, installed: 1.12.0]
        • wcwidth [required: Any, installed: 0.1.7]
        • pygments [required: Any, installed: 2.4.0]
        • setuptools [required: >=18.5, installed: 41.0.1]
        • traitlets [required: >=4.2, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • jupyter-client [required: Any, installed: 5.2.4]
        • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
          • decorator [required: Any, installed: 4.4.0]
          • ipython-genutils [required: Any, installed: 0.2.0]
          • six [required: Any, installed: 1.12.0]
        • python-dateutil [required: >=2.1, installed: 2.8.0]
        • six [required: >=1.5, installed: 1.12.0]
        • pyzmq [required: >=13, installed: 18.0.1]
        • tornado [required: >=4.1, installed: 6.0.2]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • tornado [required: >=4.2, installed: 6.0.2]
      • traitlets [required: >=4.1.0, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jinja2 [required: Any, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
      • jupyter-client [required: >=5.2.0, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
        • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • jupyter-core [required: >=4.4.0, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • nbconvert [required: Any, installed: 5.5.0]
      • bleach [required: Any, installed: 3.1.0]
        • six [required: >=1.9.0, installed: 1.12.0]
        • webencodings [required: Any, installed: 0.5.1]
      • defusedxml [required: Any, installed: 0.6.0]
      • entrypoints [required: >=0.2.2, installed: 0.3]
      • jinja2 [required: >=2.4, installed: 2.10.1]
        • MarkupSafe [required: >=0.23, installed: 1.1.1]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • mistune [required: >=0.8.1, installed: 0.8.4]
      • nbformat [required: >=4.4, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
        • attrs [required: >=17.4.0, installed: 19.1.0]
        • pyrsistent [required: >=0.14.0, installed: 0.15.2]
          • six [required: Any, installed: 1.12.0]
        • setuptools [required: Any, installed: 41.0.1]
        • six [required: >=1.11.0, installed: 1.12.0]
        • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
          • decorator [required: Any, installed: 4.4.0]
          • ipython-genutils [required: Any, installed: 0.2.0]
          • six [required: Any, installed: 1.12.0]
        • traitlets [required: >=4.1, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • pandocfilters [required: >=1.4.1, installed: 1.4.2]
      • pygments [required: Any, installed: 2.4.0]
      • testpath [required: Any, installed: 0.4.2]
      • traitlets [required: >=4.2, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • nbformat [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
        • attrs [required: >=17.4.0, installed: 19.1.0]
        • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
        • setuptools [required: Any, installed: 41.0.1]
        • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • prometheus-client [required: Any, installed: 0.6.0]
      • pyzmq [required: >=17, installed: 18.0.1]
      • Send2Trash [required: Any, installed: 1.5.0]
      • terminado [required: >=0.8.1, installed: 0.8.2]
      • pywinpty [required: >=0.5, installed: 0.5.5]
      • tornado [required: >=4, installed: 6.0.2]
      • tornado [required: >=4.1,<7, installed: 6.0.2]
      • traitlets [required: >=4.2.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
  • notebook [required: >=4.3.1, installed: 5.7.8]
    • ipykernel [required: Any, installed: 5.1.1]
      • ipython [required: >=5.0.0, installed: 7.5.0]
      • backcall [required: Any, installed: 0.1.0]
      • colorama [required: Any, installed: 0.4.1]
      • decorator [required: Any, installed: 4.4.0]
      • jedi [required: >=0.10, installed: 0.13.3]
        • parso [required: >=0.3.0, installed: 0.4.0]
      • pickleshare [required: Any, installed: 0.7.5]
      • prompt-toolkit [required: >=2.0.0,<2.1.0, installed: 2.0.9]
        • six [required: >=1.9.0, installed: 1.12.0]
        • wcwidth [required: Any, installed: 0.1.7]
      • pygments [required: Any, installed: 2.4.0]
      • setuptools [required: >=18.5, installed: 41.0.1]
      • traitlets [required: >=4.2, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • jupyter-client [required: Any, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
        • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • tornado [required: >=4.2, installed: 6.0.2]
      • traitlets [required: >=4.1.0, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • ipython-genutils [required: Any, installed: 0.2.0]
    • jinja2 [required: Any, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
    • jupyter-client [required: >=5.2.0, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
      • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • jupyter-core [required: >=4.4.0, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbconvert [required: Any, installed: 5.5.0]
      • bleach [required: Any, installed: 3.1.0]
      • six [required: >=1.9.0, installed: 1.12.0]
      • webencodings [required: Any, installed: 0.5.1]
      • defusedxml [required: Any, installed: 0.6.0]
      • entrypoints [required: >=0.2.2, installed: 0.3]
      • jinja2 [required: >=2.4, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • mistune [required: >=0.8.1, installed: 0.8.4]
      • nbformat [required: >=4.4, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
        • attrs [required: >=17.4.0, installed: 19.1.0]
        • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
        • setuptools [required: Any, installed: 41.0.1]
        • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • pandocfilters [required: >=1.4.1, installed: 1.4.2]
      • pygments [required: Any, installed: 2.4.0]
      • testpath [required: Any, installed: 0.4.2]
      • traitlets [required: >=4.2, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbformat [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
      • attrs [required: >=17.4.0, installed: 19.1.0]
      • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
      • setuptools [required: Any, installed: 41.0.1]
      • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • prometheus-client [required: Any, installed: 0.6.0]
    • pyzmq [required: >=17, installed: 18.0.1]
    • Send2Trash [required: Any, installed: 1.5.0]
    • terminado [required: >=0.8.1, installed: 0.8.2]
      • pywinpty [required: >=0.5, installed: 0.5.5]
      • tornado [required: >=4, installed: 6.0.2]
    • tornado [required: >=4.1,<7, installed: 6.0.2]
    • traitlets [required: >=4.2.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0] pandas==0.24.2
  • numpy [required: >=1.12.0, installed: 1.16.3]
  • python-dateutil [required: >=2.5.0, installed: 2.8.0]
    • six [required: >=1.5, installed: 1.12.0]
  • pytz [required: >=2011k, installed: 2019.1] rise==5.5.0
  • notebook [required: >=5.5.0, installed: 5.7.8]
    • ipykernel [required: Any, installed: 5.1.1]
      • ipython [required: >=5.0.0, installed: 7.5.0]
      • backcall [required: Any, installed: 0.1.0]
      • colorama [required: Any, installed: 0.4.1]
      • decorator [required: Any, installed: 4.4.0]
      • jedi [required: >=0.10, installed: 0.13.3]
        • parso [required: >=0.3.0, installed: 0.4.0]
      • pickleshare [required: Any, installed: 0.7.5]
      • prompt-toolkit [required: >=2.0.0,<2.1.0, installed: 2.0.9]
        • six [required: >=1.9.0, installed: 1.12.0]
        • wcwidth [required: Any, installed: 0.1.7]
      • pygments [required: Any, installed: 2.4.0]
      • setuptools [required: >=18.5, installed: 41.0.1]
      • traitlets [required: >=4.2, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • jupyter-client [required: Any, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
        • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • tornado [required: >=4.2, installed: 6.0.2]
      • traitlets [required: >=4.1.0, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • ipython-genutils [required: Any, installed: 0.2.0]
    • jinja2 [required: Any, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
    • jupyter-client [required: >=5.2.0, installed: 5.2.4]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • python-dateutil [required: >=2.1, installed: 2.8.0]
      • six [required: >=1.5, installed: 1.12.0]
      • pyzmq [required: >=13, installed: 18.0.1]
      • tornado [required: >=4.1, installed: 6.0.2]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • jupyter-core [required: >=4.4.0, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbconvert [required: Any, installed: 5.5.0]
      • bleach [required: Any, installed: 3.1.0]
      • six [required: >=1.9.0, installed: 1.12.0]
      • webencodings [required: Any, installed: 0.5.1]
      • defusedxml [required: Any, installed: 0.6.0]
      • entrypoints [required: >=0.2.2, installed: 0.3]
      • jinja2 [required: >=2.4, installed: 2.10.1]
      • MarkupSafe [required: >=0.23, installed: 1.1.1]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • mistune [required: >=0.8.1, installed: 0.8.4]
      • nbformat [required: >=4.4, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
        • attrs [required: >=17.4.0, installed: 19.1.0]
        • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
        • setuptools [required: Any, installed: 41.0.1]
        • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
        • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • pandocfilters [required: >=1.4.1, installed: 1.4.2]
      • pygments [required: Any, installed: 2.4.0]
      • testpath [required: Any, installed: 0.4.2]
      • traitlets [required: >=4.2, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • nbformat [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • jsonschema [required: >=2.4,!=2.5.0, installed: 3.0.1]
      • attrs [required: >=17.4.0, installed: 19.1.0]
      • pyrsistent [required: >=0.14.0, installed: 0.15.2]
        • six [required: Any, installed: 1.12.0]
      • setuptools [required: Any, installed: 41.0.1]
      • six [required: >=1.11.0, installed: 1.12.0]
      • jupyter-core [required: Any, installed: 4.4.0]
      • traitlets [required: Any, installed: 4.3.2]
        • decorator [required: Any, installed: 4.4.0]
        • ipython-genutils [required: Any, installed: 0.2.0]
        • six [required: Any, installed: 1.12.0]
      • traitlets [required: >=4.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
    • prometheus-client [required: Any, installed: 0.6.0]
    • pyzmq [required: >=17, installed: 18.0.1]
    • Send2Trash [required: Any, installed: 1.5.0]
    • terminado [required: >=0.8.1, installed: 0.8.2]
      • pywinpty [required: >=0.5, installed: 0.5.5]
      • tornado [required: >=4, installed: 6.0.2]
    • tornado [required: >=4.1,<7, installed: 6.0.2]
    • traitlets [required: >=4.2.1, installed: 4.3.2]
      • decorator [required: Any, installed: 4.4.0]
      • ipython-genutils [required: Any, installed: 0.2.0]
      • six [required: Any, installed: 1.12.0]
TomAugspurger commented 5 years ago

FYI, I'm seeing this as well. Similar to others, only some buttons aren't working (e.g. "Task Stream" isn't, "Graph" is).

One thing I've noticed, when the dashboard address is auto-populated (say because I'm restarting a notebook) the buttons don't work.

$ jupyter lab
# open notebook that previously created a Cluster / client & opened the dashboard
# so that the search field is populated with the address from the previous session.

Screen Shot 2019-05-29 at 2 47 11 PM

But when the field isn't pre-populated, and I paste the address of the scheduler, the buttons do work. Does that help?

Just to clarify one thing. If I have a working dashboard and I restart the kernel (not jupyterlab) things keep working even though the address is pre-populated.

jakirkham commented 5 years ago

FWIW with Ben's help we were able to solve this (at least in my case) by clearing the browser cache. Maybe different versions of code were getting jumbled together somehow? Easy enough to try at least. 🙂

ian-r-rose commented 5 years ago

Wild, thanks for the updates @TomAugspurger and @jakirkham. I'm still not sure what's going on as I can't reproduce it locally, but enough people are seeing it that there seems to be a real issue.

If somebody who does see this wants to help out by trawling through some frontend code, they might start by setting a breakpoint in this function in the browser: https://github.com/dask/dask-labextension/blob/5130eb13e0c4b85217b81af84258624b54244299/src/index.ts#L324-L350 and stepping through to see if anything seems to be amiss. And if anyone can provide a series of steps so that I can reproduce, then I can try to track down the problem myself.

One thought: it's possible that the browser is caching old network responses from when the dashboard was inactive, and thereby thinking that it is still inactive when it is not. We might try to do some cache-busting in the URL request.

TomAugspurger commented 5 years ago

I'll take a look a bit later. I seem to have hosed my dask labextension when trying to build from source. The jupyter labextension install step fails for me with

> /usr/local/bin/npm pack /Users/taugspurger/sandbox/dask-labextension
npm notice
npm notice 📦  dask-labextension@0.4.0-pre.3
npm notice === Tarball Contents ===
npm notice 2.2kB  package.json
npm notice 1.5kB  LICENSE
npm notice 2.2kB  README.md
npm notice 6.4kB  lib/clusters.d.ts
npm notice 19.9kB lib/clusters.js
npm notice 5.4kB  lib/dashboard.d.ts
npm notice 15.2kB lib/dashboard.js
npm notice 250B   lib/index.d.ts
npm notice 19.7kB lib/index.js
npm notice 2.7kB  lib/scaling.d.ts
npm notice 6.3kB  lib/scaling.js
npm notice 1.5kB  lib/sidebar.d.ts
npm notice 1.7kB  lib/sidebar.js
npm notice 668B   schema/plugin.json
npm notice 246B   style/code-dark.svg
npm notice 246B   style/code-light.svg
npm notice 2.4kB  style/dask.svg
npm notice 6.2kB  style/index.css
npm notice === Tarball Details ===
npm notice name:          dask-labextension
npm notice version:       0.4.0-pre.3
npm notice filename:      dask-labextension-0.4.0-pre.3.tgz
npm notice package size:  21.4 kB
npm notice unpacked size: 94.8 kB
npm notice shasum:        7c05ea882c2c2c83a5a8578418e89348fca7350b
npm notice integrity:     sha512-pc7TS+a8KsFhf[...]jpQ9KfMUwTdNw==
npm notice total files:   18
npm notice
dask-labextension-0.4.0-pre.3.tgz

Errored, use --debug for full output:
ValueError:
"dask-labextension@0.4.0-pre.3" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension        Package
>=0.19.1 <0.20.0        >=1.0.0-alpha.6 <2.0.0@jupyterlab/application
>=0.19.1 <0.20.0        >=1.0.0-alpha.6 <2.0.0@jupyterlab/apputils
>=0.19.1 <0.20.0        >=1.0.0-alpha.6 <2.0.0@jupyterlab/console
>=0.19.2 <0.20.0        >=1.0.0-alpha.7 <2.0.0@jupyterlab/notebook

I have jupyterlab version 0.35.6 installed.

ian-r-rose commented 5 years ago

Ah, yeah, the current master is targeting JupyterLab 1.0.0a3.

ian-r-rose commented 5 years ago

I've just released versions of the npm and python packages for this extension, targeting the new JupyterLab 1.0.0a4 prerelease. There are some under-the-hood changes in how the proxying to the bokeh server is done (now offloading a lot of logic onto jupyter-server-proxy). I'd appreciate if somebody who saw this issue could check to see if it persists in the new versions:

pip install -U --pre jupyterlab
jupyter labextension install dask-labextension@next
pip install -U --pre dask_labextension
TomAugspurger commented 5 years ago

Thanks @ian-r-rose. I think I hit https://github.com/jupyterlab/jupyterlab/issues/6408 in one of my browsers. I was able to open jupyterlab with dask-labextension alpha in Chrome and things seem to be working. I don't recall if I was seeing the unresponsive buttons in Chrome yesterday.

jakirkham commented 5 years ago

FWIW Ian I'm pretty sure my setup was using stable releases of everything (unless something got really messed up, which could be).

Vonatzki commented 5 years ago

Encountering the same issue. Already tried clearing my browser cache and doing uninstall/install of jupyter, notebook, jupyterlab and dask_labextension. I even performed jupyter labextension uninstall and then build the extension again. No dice.

In my case, I am not able to open Progress, Graph, and Workers. The other buttons open the dask tabs as expected.

Vonatzki commented 5 years ago

If it helps, I experienced this when I upgraded my JupyterLab to 1.0.2, I think clearing the browser cache doesn't help. I don't know how @jakirkham did it but I think it has something to do with JLab's cache or asset files that needs to be cleared.

Hope someone can show me the steps on how to properly clear and all assets and cache related to JupyterLab.

ian-r-rose commented 5 years ago

Can people who are seeing this issue check if clearing the application cached state fixes the issue? I may have a fix in #74, but that would be a useful data point.

You can clear the state by going to the url /lab?reset

Vonatzki commented 5 years ago

Holy smokes, batman! It worked!

I've been pulling my hair out for a week just to make it work.

Thank you so much @ian-r-rose , really appreciate it.

ian-r-rose commented 5 years ago

Great, thanks for letting me know @Vonatzki! I'm working on the more permanent fix, but at least this should unblock people for now.

Vonatzki commented 5 years ago

Update: After trying it out for a while, this bug would appear again on few occasions (when refreshing the tab or reopening a still-running kernel).

Accessing /lab?reset would make it work again. However it would lose your current tabs and opened notebooks.

@ian-r-rose

ian-r-rose commented 5 years ago

Thanks @Vonatzki, I'll try to publish a patch release fixing this sometime this week.

ian-r-rose commented 5 years ago

I just published a patch release of the dask-labextension (the npm package, v1.0.1), which is intended to fix this issue. If folks can check to see if it persists, that would be great.