From 466af69c854efe326132c3c2817f6b50e80ca8af Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Tue, 17 Sep 2024 02:29:03 -0400 Subject: [PATCH] Fix jupyter events (#587) * set pixel ratio in imgui renderer for each render * remove set defaultdict from jupyter canvas since autogui makes one --- wgpu/gui/jupyter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/wgpu/gui/jupyter.py b/wgpu/gui/jupyter.py index d2cadd1c..e981af5e 100644 --- a/wgpu/gui/jupyter.py +++ b/wgpu/gui/jupyter.py @@ -3,7 +3,6 @@ can be used as cell output, or embedded in a ipywidgets gui. """ -from collections import defaultdict import weakref import asyncio @@ -29,7 +28,6 @@ def __init__(self, *, size=None, title=None, **kwargs): self._logical_size = 0, 0 self._is_closed = False self._request_draw_timer_running = False - self._event_handlers = defaultdict(set) # Register so this can be display'ed when run() is called pending_jupyter_canvases.append(weakref.ref(self))