Skip to content

Commit

Permalink
Fix jupyter events (#587)
Browse files Browse the repository at this point in the history
* set pixel ratio in imgui renderer for each render

* remove set defaultdict from jupyter canvas since autogui makes one
  • Loading branch information
kushalkolar authored Sep 17, 2024
1 parent b8c6335 commit 466af69
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wgpu/gui/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
can be used as cell output, or embedded in a ipywidgets gui.
"""

from collections import defaultdict
import weakref
import asyncio

Expand All @@ -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))
Expand Down

0 comments on commit 466af69

Please sign in to comment.