Git Product home page Git Product logo

Comments (23)

benjaminsingleton avatar benjaminsingleton commented on August 13, 2024 2

I believe I've run into this same issue. While I can start a cluster and generate a valid dashboard URL, the graphs in the panes display nothing. It appears that I cannot connect to the Bokeh server.

My setup may be somewhat unusual / complicated. I'm running JupyterLab in a Docker container that is being presented inside of an iframe (I'm using the Domino Data Lab platform). I only wanted to mention this because there may be configuration settings in Domino that might affect the behavior of this extension. I'm honestly just not sure, so I figured I'd raise the question here in case there is an obvious fix / approach to troubleshooting.

dask-jupyterlab-extension

bokeh-error

$ jupyter serverextension list
config dir: /home/ubuntu/.jupyter
    nbserverproxy  enabled
    - Validating...
      nbserverproxy  OK
config dir: /opt/conda/etc/jupyter
    dask_labextension  enabled
    - Validating...
/opt/conda/lib/python3.6/site-packages/dask_labextension/config.py:13: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for fulldetails.
  defaults = yaml.load(f)
      dask_labextension 0.3.1 OK
    ipyparallel.nbextension  enabled
    - Validating...
      ipyparallel.nbextension  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 0.35.4 OK
    jupyterlab_latex  enabled
    - Validating...
      jupyterlab_latex 0.4.1 OK
    nbdime  enabled
    - Validating...
      nbdime 1.0.5 OK

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024 2

Great! We are still dealing with some difficulties with the newest tornado, but once they are nailed down you should be able to update without difficulties.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024 1

Thanks for the update @andersy005 and @jbaksta! If either of you have a minute to describe how to fix a problem like this, a PR to the README.md would be much appreciated.

from dask-labextension.

andersy005 avatar andersy005 commented on August 13, 2024

Adding this post about similar bokeh error for future reference: https://groups.google.com/a/continuum.io/d/msg/bokeh/3fuiBg0nGPM/m8LrBiVCAQAJ

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

@andersy005 Thanks for the report. I'm not sure just now where the problem is. Just to confirm, you find that it works okay on the same cluster without using JupyterHub?
Also, cc @yuvipanda, who may have some idea about what might be going wrong in the proxying.

from dask-labextension.

andersy005 avatar andersy005 commented on August 13, 2024

Just to confirm, you find that it works okay on the same cluster without using JupyterHub?

This is correct. When using SSH tunneling, everything works okay.

from dask-labextension.

jhamman avatar jhamman commented on August 13, 2024

One diagnostic detail I've found instructive here is that the dask dashboard (when opened via nbserverproxy and not in the lab extension) also suffers from the same problem. My best bet is that we have some firewall setting on the hub ingress controller that is blocking websockets but as I've told @andersy005, this is way outside my area of expertise.

from dask-labextension.

jbaksta avatar jbaksta commented on August 13, 2024

@andersy005 asked me to give an update here. When using a reverse proxy (i.e., nginx, apache), the websockets connection upgrade needs to be pretty general and the documented ones ones on JupyterHub for normal functionality are too strict in the sense. I'm guessing this will probably be a thing moving forward with jupyterlab extensions in many cases.

from dask-labextension.

andersy005 avatar andersy005 commented on August 13, 2024

Closing this as it's been fixed!

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

Hi @benjaminsingleton, thanks for the report. This may be the same issue as dask/dask-examples#64. Can you try downgrading notebook to 5.7.4 and tornado to 5.1.1 and see if that helps?

from dask-labextension.

benjaminsingleton avatar benjaminsingleton commented on August 13, 2024

Thanks! I will test with the versions you provided and will report back.

from dask-labextension.

benjaminsingleton avatar benjaminsingleton commented on August 13, 2024

@ian-r-rose Just wanted to report back that downgrading notebook=5.7.4 and tornado=5.1.1 solved the problem, as you directed! All the graphs are updating as they should.

from dask-labextension.

rabernat avatar rabernat commented on August 13, 2024

I just hit this same issue on nasa pleiades. Has it been resolved, or do I need to downgrade notebook and tornado as recommended?

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

What version of dask_labextension are you using? This should be fixed as of dask_labextension 0.3.2, and the jupyterlab compatibility issues should be fixed as of 1.0.0.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

If you need to be on an earlier version than those, I would recommend downgrading tornado to 5.1.1

from dask-labextension.

rabernat avatar rabernat commented on August 13, 2024

I'm on dask-labextension v1.0.0 and jupyterlab 1.0.1.

The problem is identical to the one @andersy005 described.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

@jbaksta indicated that the root of the problem was with websocket connection settings when using a reverse proxy. That type of thing very quickly gets out of my ability to answer. Can you reproduce the same thing locally or with SSH tunneling?

from dask-labextension.

rabernat avatar rabernat commented on August 13, 2024

It works fine when I use ssh tunneling.

The problem arises when trying to go through nbserverproxy, either directly via the cluster dashboard link in a separate tab or when using the dask-labextension viewers.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

Do I understand you that it also occurs if you open it in a separate browser tab?
Do you still have nbserverproxy installed, or are you using the renamed-and-revamped jupyter-server-proxy?

from dask-labextension.

rabernat avatar rabernat commented on August 13, 2024

Do I understand you that it also occurs if you open it in a separate browser tab?

Yes, if I am going via nbserverproxy.

Do you still have nbserverproxy installed, or are you using the renamed-and-revamped jupyter-server-proxy?

I am using nbserverproxy. I had not heard of jupyter-server-proxy.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

Yuvi renamed nbserverproxy to jupyter-server-proxy, and more-or-less rewrote it from the ground up. I'd recommend changing to that and trying again.
dask-labextension now depends on jupyter-server-proxy, so I wonder if having both installed might cause some issues.

from dask-labextension.

rabernat avatar rabernat commented on August 13, 2024

Yes that fixed it! Thanks!

FWIW, I did not get jupyter-server-proxy installed when I installed dask-labextension. I had to install it explicitly.

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on August 13, 2024

Great! Glad it's working now!

I'm not sure why jupyter-server-proxy was not installed properly... it's listed in the setup.py: https://github.com/dask/dask-labextension/blob/master/setup.py#L48

from dask-labextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.