Skip to content

Ensure BokehTornado uses prefix - #3746

Merged
mrocklin merged 1 commit into
dask:masterfrom
jrbourbeau:pass-prefix
Apr 28, 2020
Merged

mrocklin merged 1 commit into
dask:masterfrom
jrbourbeau:pass-prefix

Conversation

@jrbourbeau

Copy link
Copy Markdown
Member

Currently Bokeh .js assets for the dashboard aren't in the correct location when an http_prefix is specified. This results in the dashboard being empty and 404 errors logged in the browser console. This PR passes an input prefix to the underlying BokehTornado's prefix= keyword (xref dask/dask#6141 (comment))

cc @mt-krainski

Closes dask/dask#6141


bokeh_app = s.http_application.applications[0]
assert isinstance(bokeh_app, BokehTornado)
assert bokeh_app.prefix == f"/{prefix}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice test :)

@mrocklin

Copy link
Copy Markdown
Member

Thank you @jrbourbeau

+1 from me

@mrocklin
mrocklin merged commit 7c57f85 into dask:master Apr 28, 2020
@jrbourbeau
jrbourbeau deleted the pass-prefix branch April 28, 2020 12:46
@jrbourbeau

Copy link
Copy Markdown
Member Author

Thanks for reviewing @mrocklin!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with dashboard when using DASK with --dashboard-prefix with Python3.7

2 participants