'import distributed' causes eating of bokeh server exceptions
See original GitHub issueNot sure if this issue is better for here or for bokeh (pinging @bryevdv), but the simplest bokeh app I can think of does not print exceptions to the command line if I import distributed. The app looks like
from bokeh.io import curdoc
import distributed
def modify_doc(doc):
raise ValueError
return doc
doc = modify_doc(curdoc())
When you run this with bokeh serve <filename>
and try to access the app, the exception does not get printed to the command line (as it should, and as it does when the distributed
import does not occur).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Running a Bokeh server
Bokeh server makes it easy to create interactive web applications that connect front-end UI events to running Python code. Bokeh creates high-level Python ......
Read more >Handling exceptions in application - Bokeh Discourse
Hi, I have a question about handling exceptions in a Bokeh application. We have a “bokeh serve” application which, if it has an...
Read more >Running a Bokeh Server — Bokeh 2.2.2 Documentation
The purpose of the Bokeh server is to make it easy for Python users to create interactive web applications that can connect front-end...
Read more >Bokeh server — Bokeh 3.0.3 Documentation
The Bokeh server is a component of Bokeh that allows you to build interactive web applications that are connected to Python code running...
Read more >Running a Bokeh Server — Bokeh 0.12.4 documentation
myapp.py from random import random from bokeh.layouts import column from ... The --show option will cause a browser to open up a new...
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
This is still a major issue and makes debugging bokeh apps which use distributed or any library that imports it (e.g. xarray) really difficult. I’ll take a look at fixing this.
We handle interactive Python usage separately here:
https://github.com/dask/distributed/blob/4953f81d7b6856f6a22f00e27476d4a554a120c2/distributed/utils.py#L681
https://github.com/dask/distributed/blob/4953f81d7b6856f6a22f00e27476d4a554a120c2/distributed/deploy/spec.py#L212-L213