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.

'import distributed' causes eating of bokeh server exceptions

See original GitHub issue

Not 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Sep 25, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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