Skip to content

Commit

Permalink
fix: add set_custom_exc to support a recent dask
Browse files Browse the repository at this point in the history
In dask/dask#10354 dask
calls set_custom_exc to set a custom exception handler.

This breaks solara with dask because we have a custom/fake
IPython implementation.

Fixes #191
  • Loading branch information
maartenbreddels committed Jul 11, 2023
1 parent c58f61b commit 9afa6a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solara/server/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def magic(self, *args):
# proplot requires this
pass

def set_custom_exc(self, exc_tuple, handler):
# make dask work
pass


def kernel_instance_dispatch(cls, *args, **kwargs):
context = app.get_current_context()
Expand Down

0 comments on commit 9afa6a9

Please sign in to comment.