Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3bd6de2

Browse filesBrowse files
authored
fix auto canvas detection (#638)
* fix auto canvas detection * black
1 parent 0769177 commit 3bd6de2
Copy full SHA for 3bd6de2

File tree

2 files changed

+4
-2
lines changed
Filter options

2 files changed

+4
-2
lines changed

‎fastplotlib/__init__.py

Copy file name to clipboardExpand all lines: fastplotlib/__init__.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from pathlib import Path
22

3-
from .utils.gui import run # noqa
3+
# this must be the first import for auto-canvas detection
4+
from .utils import run # noqa
45
from .graphics import *
56
from .graphics.selectors import *
67
from .graphics.utils import pause_events

‎fastplotlib/utils/__init__.py

Copy file name to clipboardExpand all lines: fastplotlib/utils/__init__.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from dataclasses import dataclass
22

3-
3+
# this MUST be imported as early as possible in fpl.__init__ before any other wgpu stuff
4+
from .gui import run
45
from .functions import *
56
from .gpu import enumerate_adapters, select_adapter, print_wgpu_report
67
from ._plot_helpers import *

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.