From 9afa6a97cf300001b6523a2fd179b79cc3ac8746 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Tue, 11 Jul 2023 17:44:55 +0200 Subject: [PATCH] fix: add set_custom_exc to support a recent dask In https://github.com/dask/dask/pull/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 https://github.com/widgetti/solara/issues/191 --- solara/server/patch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solara/server/patch.py b/solara/server/patch.py index cc92fd5e7..3b1f361a3 100644 --- a/solara/server/patch.py +++ b/solara/server/patch.py @@ -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()