From 6f9b1599ecbc1c560e96e52bbfa998dade5baef2 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 bd88abe7d..c8cf4c1e8 100644 --- a/solara/server/patch.py +++ b/solara/server/patch.py @@ -280,7 +280,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): @@ -364,6 +364,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