Skip to content

Dashboard's index links incorrect with nbserverproxy #2081

Closed

Description

@jakirkham

When using nbserverproxy to proxy the Dask Distributed Dashboard, the URLs in the application list on the index page don't seem to be correctly generated as relative links of the proxy URL. This is demonstrated in the screenshot below where the mouse over URL does not prefix the URL with http://localhost:8889/proxy/8787.

Screenshot Proxy Dropped: screen shot 2018-06-28 at 14 24 39

Contrast this to the menubar above any of the apps where the proxy URL is respected. This is the case for all of the apps in the menubar and persists even when changing the app viewed.

Screenshot Proxy Included: screen shot 2018-06-28 at 14 28 01

It seems that in most cases users set the --bokeh-prefix CLI argument or using service_kwargs in Python. However neither of these approaches really work for nbserverproxy as the prefix is dependent on the port the Dashboard gets hosted on, which we don't know at the time we would be setting the prefix.

Unclear on the history behind this issue or where would be the best place to try to improve things (Distributed or Bokeh). So open to suggestions on how best to improve this.

Started the notebook with jupyter notebook. Other details for the MRE shown above.

Jupyter notebook:

Contained one cell with this content.

import distributed
c = distributed.Client()
c

Environment:
name: test
channels:
  - conda-forge
  - defaults
dependencies:
  - appnope=0.1.0=py36_0
  - backcall=0.1.0=py_0
  - blas=1.1=openblas
  - bleach=2.1.3=py_0
  - bokeh=0.12.16=py36_0
  - ca-certificates=2018.4.16=0
  - certifi=2018.4.16=py36_0
  - click=6.7=py_1
  - cloudpickle=0.5.3=py_0
  - cytoolz=0.9.0.1=py36_0
  - dask=0.18.1=py_0
  - dask-core=0.18.1=py_0
  - decorator=4.3.0=py_0
  - distributed=1.22.0=py36_0
  - entrypoints=0.2.3=py36_1
  - heapdict=1.0.0=py36_0
  - html5lib=1.0.1=py_0
  - ipykernel=4.8.2=py36_0
  - ipython=6.4.0=py36_0
  - ipython_genutils=0.2.0=py36_0
  - jedi=0.12.0=py36_0
  - jinja2=2.10=py36_0
  - jsonschema=2.6.0=py36_1
  - jupyter_client=5.2.3=py36_0
  - jupyter_core=4.4.0=py_0
  - libgfortran=3.0.0=0
  - libsodium=1.0.16=0
  - locket=0.2.0=py36_1
  - markupsafe=1.0=py36_0
  - mistune=0.8.3=py36_1
  - msgpack-python=0.5.6=py36h2d50403_2
  - nbconvert=5.3.1=py_1
  - nbformat=4.4.0=py36_0
  - nbserverproxy=0.8.3=py36_0
  - ncurses=5.9=10
  - notebook=5.5.0=py36_0
  - numpy=1.14.5=py36_blas_openblashd3ea46f_200
  - openblas=0.2.20=8
  - openssl=1.0.2o=0
  - packaging=17.1=py_0
  - pandas=0.23.1=py36_0
  - pandoc=2.2.1=hde52d81_0
  - pandocfilters=1.4.2=py36_0
  - parso=0.2.1=py_0
  - partd=0.3.8=py36_0
  - pexpect=4.6.0=py36_0
  - pickleshare=0.7.4=py36_0
  - prompt_toolkit=1.0.15=py36_0
  - psutil=5.4.6=py36_0
  - ptyprocess=0.6.0=py36_0
  - pygments=2.2.0=py36_0
  - pyparsing=2.2.0=py36_0
  - python=3.6.5=1
  - python-dateutil=2.7.3=py_0
  - pytz=2018.4=py_0
  - pyyaml=3.12=py36_1
  - pyzmq=17.0.0=py36_4
  - readline=7.0=0
  - send2trash=1.5.0=py_0
  - setuptools=39.2.0=py36_0
  - simplegeneric=0.8.1=py36_0
  - six=1.11.0=py36_1
  - sortedcontainers=2.0.4=py36_0
  - sqlite=3.20.1=2
  - tblib=1.3.2=py36_0
  - terminado=0.8.1=py36_0
  - testpath=0.3.1=py36_0
  - tk=8.6.7=0
  - toolz=0.9.0=py_0
  - tornado=5.0.2=py36_0
  - traitlets=4.3.2=py36_0
  - wcwidth=0.1.7=py36_0
  - webencodings=0.5.1=py36_0
  - xz=5.2.3=0
  - yaml=0.1.7=0
  - zeromq=4.2.5=1
  - zict=0.1.3=py_0
  - zlib=1.2.11=h470a237_3
  - libgfortran-ng=3.0.1=h93005f0_2

Activity

  1. mrocklin commented on Jun 28, 2018

    @mrocklin
    Member
  2. jakirkham commented on Jun 29, 2018

    @jakirkham
    MemberAuthor

    Sure using the status page works fine.

    It's just unfortunate that the index page in it's current state is not generally usable as soon as any sort of proxying like this or the situation described in issue ( #2073 ) come into play.

    Given the problem outlined above, @bryevdv, do you have any suggestions for us? Is it possible to get relative links on the index page somehow?

  3. bryevdv commented on Jun 29, 2018

    @bryevdv
    Contributor

    Is it possible to get relative links on the index page somehow?

    I don't really use the index page at all. If others have strong opinions about how it should work or what it should present, I'm happy to consider and help get PRs merged.

  4. mrocklin commented on Jun 29, 2018

    @mrocklin
    Member
  5. mrocklin commented on Sep 6, 2018

    @mrocklin
    Member

    Closing here. @jakirkham if you'd still like to see this resolved then I recommend posting something upstream.

  6. jakirkham commented on Sep 6, 2018

    @jakirkham
    MemberAuthor

    Hmm...is it not possible for us to disable this page on our own?

  7. mrocklin commented on Sep 6, 2018

    @mrocklin
    Member
  8. bryevdv commented on Sep 6, 2018

    @bryevdv
    Contributor
  9. mrocklin commented on Sep 6, 2018

    @mrocklin
    Member
  10. jakirkham commented on Sep 6, 2018

    @jakirkham
    MemberAuthor

    Where would this keyword go in our code?

  11. mrocklin commented on Sep 6, 2018

    @mrocklin
    Member
  12. bryevdv commented on Sep 6, 2018

    @bryevdv
    Contributor
  13. jakirkham commented on Sep 7, 2018

    @jakirkham
    MemberAuthor

    Thanks. Added PR ( #2241 ) to simply disable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions