question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bokeh warning from get_task_stream.

See original GitHub issue
/home/nfs/an.taugspurger/miniconda3/envs/ucx-dev-test/lib/python3.7/site-packages/bokeh/io/saving.py:126: UserWarning: save() called but no resources were supplied and output_file(...) was never called, defaulting to resources.CDN
  warn("save() called but no resources were supplied and output_file(...) was never called, defaulting to resources.CDN")
         Took 14.14s

To avoid the warning, we need to pass a resources= to https://github.com/dask/distributed/blob/fb30c33562862f30864456766424b44a3e91aa5b/distributed/client.py#L3590

The bokeh default of resources=resources.CDN seems good, but I don’t think we should warn.

I could imagine making this configurable, for when you want to view the bokeh plot behind a firewall that doesn’t have access to bokeh’s CDN. To make it configureable, we’ll need to add a resoruces keyword to Client.get_task_stream and distributed.get_task_stream. Is there a potential ambiguity with the name resources? I could imagine “resources”? http://distributed.dask.org/en/latest/resources.html?highlight=resources#worker-resources Maybe call it bokeh_resources to be safe.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jrbourbeaucommented, Mar 27, 2020

Great, thanks @prasunanand. I think we want to have a call to output_file before save, like is done here:

https://github.com/dask/distributed/blob/b0c000883eb10d4801b967fe348c4d6281ca3f1d/distributed/scheduler.py#L5097-L5098

0reactions
prasunanandcommented, Mar 27, 2020

I am working on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bokeh.core.validation — Bokeh 2.4.0 Documentation
This module contains error and warning codes as well as helper functions for defining validation checks. One use case for warnings is to...
Read more >
Bokeh Server Plot not updating and throwing warning when I ...
I am projecting two different values using select X attribute on Bokeh layout. There is similar post on SO that tells you to...
Read more >
Source code for distributed.client
In that case simply # warn the payload and hope it works. ... filename: filename = "dask-profile.html" if filename: from bokeh.plotting import output_file, ......
Read more >
API — Dask.distributed 2.11.0 documentation
Get task stream data from scheduler ... If true then also return a Bokeh figure If plot == 'save' then save the figure...
Read more >
Alert — Panel v0.14.1 - HoloViz Panel
This is a warning! The Alert pane also a number of alert_type options which control the color of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found