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:
- Created 5 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, thanks @prasunanand. I think we want to have a call to
output_file
beforesave
, like is done here:https://github.com/dask/distributed/blob/b0c000883eb10d4801b967fe348c4d6281ca3f1d/distributed/scheduler.py#L5097-L5098
I am working on it.