Skip to content

Commit 466af69

Browse files
authored
Fix jupyter events (#587)
* set pixel ratio in imgui renderer for each render * remove set defaultdict from jupyter canvas since autogui makes one
1 parent b8c6335 commit 466af69

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wgpu/gui/jupyter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
can be used as cell output, or embedded in a ipywidgets gui.
44
"""
55

6-
from collections import defaultdict
76
import weakref
87
import asyncio
98

@@ -29,7 +28,6 @@ def __init__(self, *, size=None, title=None, **kwargs):
2928
self._logical_size = 0, 0
3029
self._is_closed = False
3130
self._request_draw_timer_running = False
32-
self._event_handlers = defaultdict(set)
3331

3432
# Register so this can be display'ed when run() is called
3533
pending_jupyter_canvases.append(weakref.ref(self))

0 commit comments

Comments
 (0)