From b48b1e70e237b7328ee50f699f8299bb76d361c9 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Mon, 11 Mar 2024 17:09:45 +0100 Subject: [PATCH] fix: thread __repr__ makes solara hang --- solara/server/patch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solara/server/patch.py b/solara/server/patch.py index 75c9dfe40..bcf12bf31 100644 --- a/solara/server/patch.py +++ b/solara/server/patch.py @@ -277,7 +277,7 @@ def WidgetContextAwareThread__init__(self, *args, **kwargs): try: self.current_context = kernel_context.get_current_context() except RuntimeError: - logger.debug(f"No context for thread {self}") + logger.debug(f"No context for thread {self._name}") def WidgetContextAwareThread__bootstrap(self): @@ -361,6 +361,7 @@ def patch_ipyreact(): # make this a no-op, we'll create the widget when needed ipyreact.importmap._update_import_map = lambda: None + def patch_ipyvue_performance(): import functools from collections.abc import Iterable